{"name":"jfig","version":"1.2.0","description":"JSON file loader or JSON pass through","main":"index.js","scripts":{"test":"node test.js | tap-spec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/jfig.git"},"keywords":["config","json","loader"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/jfig/issues"},"homepage":"https://github.com/scottcorgan/jfig","dependencies":{"amp-is-object":"^1.0.1","amp-is-string":"^1.0.1","clear-require":"^1.0.1","join-path":"^1.0.0","lodash.find":"^2.4.1"},"devDependencies":{"fs-extra":"^0.14.0","tap-spec":"^2.1.2","tape":"^3.0.3"},"gitHead":"31b882dead8f66e266e2109613df0aec21c48877","_id":"jfig@1.2.0","_shasum":"b7e9bfbd9912476c98c39f41cae00aa1bb305cc5","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.10.35","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"b7e9bfbd9912476c98c39f41cae00aa1bb305cc5","tarball":"http://registry-npm.ywwl.com/jfig/download/jfig-1.2.0.tgz","integrity":"sha512-HXxHzv84sVMW/Ndrs8AbXqYdg0ytwMG6adczttqhMOAAATqddFQF2YFLufFQ5b2/x3Y4/6Y/JjzViQi7t+YBpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHFyQCxIDCYxwcg9SqMwgVmDSYwLAS5MoUdfDQgAzadPAiBUX+EXbA1+fAUAmXcfZR4nzmYCUQALixqo7g7ig9c9yA=="}],"size":2988,"noattachment":false,"key":"/jfig/-/jfig-1.2.0.tgz"},"readme":"# jfig\n\nJSON file loader or JSON pass through.\n\nI needed a way to not have to know if the data passed into the function was a file path or an object. If it is a filename, this module tries to load the file. If it is an object, it just returns the object.\n\n## Install\n\n```\nnpm install jfig --save\n```\n\n## Usage\n\nFile path\n\n```js\nvar jfig = require('jfig');\n\nvar something = __dirname + '/config.json';\nvar config = jfig(something);\n```\n\nObject pass through\n\n```js\nvar jfig = require('jfig');\n\nvar something = {\n  type: 'object'\n};\nvar config = jfig(something);\n```\n\n## API\n\n### jsfig(data[, options])\n\n* `data` - file path or object to parse\n* `options`\n  * `root` - the root path if a file path is provided\n  * `pluck` - a string or array of keys to plucks the values out of the config file or object\n\n## Run Test\n\n```\nnpm install\nnpm test\n```\n","publish_time":1421103360210,"_cnpm_publish_time":1421103360210,"dist-tags":{"latest":"1.2.0"}}