1.0.0 • Published 8 years ago
joibuilder v1.0.0
Joibuilder
Node.js module to parse a yaml input file into a joi schema
Installation
npm install joibuilder --save
Usage
// Import a module
import joibuilder from 'joibuilder';
// Get things done
const fromYamlSchema = joibuilder.build('test/file.yml');
// or you can transmit an object
import yamlParser from 'yamljs';
const json = yamlParser.load('test/file.yml').columns;
const fromYamlSchema = joibuilder.build(json);