jyi
v1.0.0
Published
read data from string/file in json, yaml or ini format
Downloads
3
Readme
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