{"_id":"jfig","_rev":"1745776","name":"jfig","description":"JSON file loader or JSON pass through","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"time":{"modified":"2026-11-19T14:31:02.000Z","created":"2015-01-09T18:46:20.181Z","1.2.0":"2015-01-12T22:56:00.210Z","1.1.0":"2015-01-09T19:06:10.040Z","1.0.0":"2015-01-09T18:46:20.181Z"},"users":{},"author":{"name":"Scott Corgan"},"repository":{"type":"git","url":"https://github.com/scottcorgan/jfig.git"},"versions":{"1.2.0":{"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"},"publish_time":1421103360210,"_cnpm_publish_time":1421103360210},"1.1.0":{"name":"jfig","version":"1.1.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":"0f38d710a0055b014a6b335423bc2f2f40286146","_id":"jfig@1.1.0","_shasum":"cbecacd143721c81b90bfc59627abc3c3bb1eff9","_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":"cbecacd143721c81b90bfc59627abc3c3bb1eff9","tarball":"http://registry-npm.ywwl.com/jfig/download/jfig-1.1.0.tgz","integrity":"sha512-JPCvfF0r4qeR7CnyVMy07zeiCfbRhVYU8w85MvHtWbOSArXA2rfLMbcnqkb50Ycy/1RH02EIujMfSAs9qFOgkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE6AjlmiHex3nRmyGFpUd0A1x0LSX6pCC4bnwpNyZY9pAiEA3sYG21sPG5CW/8dQE7owZekRCpLmM6w6DioWCbzkKqg="}],"size":2455,"noattachment":false,"key":"/jfig/-/jfig-1.1.0.tgz"},"publish_time":1420830370040,"_cnpm_publish_time":1420830370040},"1.0.0":{"name":"jfig","version":"1.0.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":"a68c14c989ca9b52169822afe506cf7f2ad611b2","_id":"jfig@1.0.0","_shasum":"4b0945c2ad2bed6391471a8dd7560843d7b3c75f","_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":"4b0945c2ad2bed6391471a8dd7560843d7b3c75f","tarball":"http://registry-npm.ywwl.com/jfig/download/jfig-1.0.0.tgz","integrity":"sha512-XVIIWfYfUFg2L8I/BKRu9RHXXWOcZu4r6qjN9Mrl8sErEsUVZYll06Nt2uDqci/BYNHYOtmfn8OREEoA+1+d9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzhVHDmD5GXzDNzIadcMixesYYu17QG+YQjKGrdnHGvQIgV6K1nhQvjwHiz7cGS/rUClEM6fya0f6uedp44O3o/N8="}],"size":2456,"noattachment":false,"key":"/jfig/-/jfig-1.0.0.tgz"},"publish_time":1420829180181,"_cnpm_publish_time":1420829180181}},"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","_attachments":{},"homepage":"https://github.com/scottcorgan/jfig","bugs":{"url":"https://github.com/scottcorgan/jfig/issues"},"license":"MIT"}