{"name":"bcfg","version":"0.0.1","description":"Config parser for bcoin","keywords":["conf","config"],"license":"MIT","repository":{"type":"git","url":"git://github.com/bcoin-org/bcfg.git"},"homepage":"https://github.com/bcoin-org/bcfg","bugs":{"url":"https://github.com/bcoin-org/bcfg/issues"},"author":{"name":"Christopher Jeffrey","email":"chjjeffrey@gmail.com"},"main":"./lib/bcfg.js","scripts":{"browserify":"browserify -s bcfg lib/bcfg.js | uglifyjs -c > bcfg.js","clean":"rm -f bcfg.js","lint":"eslint lib/ test/ || exit 0","test":"mocha --reporter spec test/*-test.js","webpack":"webpack --config webpack.config.js"},"devDependencies":{"babelify":"^8.0.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.1","browserify":"^14.5.0","eslint":"^4.14.0","mocha":"^4.0.1","uglifyjs-webpack-plugin":"^1.1.5","uglify-es":"^3.1.3","webpack":"^3.10.0"},"engines":{"node":">=7.6.0"},"browser":{"./lib/fs":"./lib/fs-browser.js"},"browserify":{"transform":["babelify"]},"gitHead":"059d237b5b15f769f8c65501ceee88f977794dfd","_id":"bcfg@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"chjj","email":"chjjeffrey@gmail.com"},"dist":{"integrity":"sha512-ojGs+l41+PFtY+56CAgqFhzVQ4tKgfH6zgep1wi2l5ykkbz3U+TQAo92X83IPzMIEMMOizTUtxVvMAHDS3bfBg==","shasum":"50c031f39efdb343d9ec6db2a0f961af6090e31f","tarball":"http://registry-npm.ywwl.com/bcfg/download/bcfg-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdkiTX3BNpdNJ19RJpbeimcv0Y+2keSB/thd+wj2rFCAiEA/XKJx1TctfVo9iJWqhoeLsZx3wlYXYAV1Fvt494uaI8="}],"size":7898,"noattachment":false,"key":"/bcfg/-/bcfg-0.0.1.tgz"},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcfg-0.0.1.tgz_1514589046581_0.18479286576621234"},"directories":{},"readme":"# bcfg\n\nConfig parser (used for bcoin).\n\n## Usage\n\n``` js\nconst Config = require('bcfg');\n\n// Will consider ~/.my-module the prefix directory.\nconst config = new Config('my-module', {\n  alias: {\n    'n': 'network'\n  }\n});\n\n// Inject some custom options first.\nconfig.inject({\n  some: 'user',\n  options: 'here'\n});\n\nconfig.load({\n  // Parse URL hash\n  hash: true,\n  // Parse querystring\n  query: true,\n  // Parse environment\n  env: true,\n  // Parse args\n  argv: true\n});\n\n// Will parse ~/.my-module/my-config.conf (throws on FS error).\nconfig.open('my-config.conf');\n\n// These will cast types and throw on incorrect type.\nconsole.log(config.str('username'));\nconsole.log(config.str('password'));\nconsole.log(config.uint('userid'));\nconsole.log(config.float('percent'));\nconsole.log(config.bool('initialize'));\n```\n\n## Contribution and License Agreement\n\nIf you contribute code to this project, you are implicitly allowing your code\nto be distributed under the MIT license. You are also implicitly verifying that\nall code is your original work. `</legalese>`\n\n## License\n\n- Copyright (c) 2017, Christopher Jeffrey (MIT License).\n\nSee LICENSE for more info.\n","publish_time":1514589046735,"_cnpm_publish_time":1514589046735,"dist-tags":{"latest":"0.2.2"}}