1.0.0 • Published 8 years ago

joibuilder v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Joibuilder

Build Status Dependencies NPM version

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);
1.0.0

8 years ago

0.0.1

8 years ago