read-boost-config
Read boost config file in js
Last updated 5 years ago by evanlucas .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install read-boost-config 
SYNC missed versions from official npm registry.

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)

Current Tags

  • 2.0.0                                ...           latest (5 years ago)

7 Versions

  • 2.0.0                                ...           5 years ago
  • 1.0.5                                ...           5 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |