read-boost-config

2.0.0 • Public • Published

read-boost-config

Build Status Coverage Status

Read boost config file in js

Note: read-boost-config is only supported on iojs and node v4+. To use with an older version of node, please use read-boost-config@1.

Install

$ npm install [--save] [-g] read-boost-config

Test

$ npm test

Coverage

$ npm test -- --cov

API

// parse a string
var str = 'name=evan\n'
console.log(read.parseString(str))
// => { name: 'evan' }
 
// parse a file
read.parseFileSync('test/fixture')
// => { name: 'evan', foo: 'bar' }
 
// parse file async
read.parseFile('test/fixture', function(err, data) {
  if (err) throw err
  console.log(data)
  // => { name: 'evan', foo: 'bar' }
})

CLI Tool

echo 'name=evan\n' | read-boost-config --json
// => {
// =>   "name""evan"
// => }

Author

Evan Lucas

License

MIT (See LICENSE for more info)

Readme

Keywords

none

Package Sidebar

Install

npm i read-boost-config

Weekly Downloads

8

Version

2.0.0

License

MIT

Last publish

Collaborators

  • eh
  • evanlucas