pomeo / joibuilder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 94.6%Language:Makefile 5.4%