1.0.0 • Published 6 years ago
jyi v1.0.0
jyi
read data from string/file in json, yaml or ini format
Example
const jyi = require('jyi')
// sample.json content: { "a": { "b": { "c": 1 } } }
let get = jyi.loadFile('sample.json')
get('a', 'b', 'c').then(console.log) // -> output 1
get('x') // throw error
Install
$ npm i jyi
1.0.0
6 years ago