joibuilder

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i joibuilder

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • pomeo