{"_id":"require-json-tree","_rev":"503756","name":"require-json-tree","description":"Load a directory containing json files into a hash keyed by filenames","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"weilu","email":"luwei.here@gmail.com"}],"time":{"modified":"2024-06-24T21:41:42.000Z","created":"2014-03-11T04:30:17.532Z","1.1.0":"2014-03-14T09:01:50.918Z","1.0.0":"2014-03-11T04:30:17.532Z"},"users":{},"author":{"name":"Wei Lu"},"versions":{"1.1.0":{"name":"require-json-tree","version":"1.1.0","description":"Load a directory containing json files into a hash keyed by filenames","main":"index.js","scripts":{"test":"mocha --reporter list test/*.js"},"author":{"name":"Wei Lu"},"license":"ISC","devDependencies":{"mocha":"^1.17.1"},"_id":"require-json-tree@1.1.0","dist":{"shasum":"222dc15acbb4426732361714bf9769dce1f74887","tarball":"http://registry-npm.ywwl.com/require-json-tree/download/require-json-tree-1.1.0.tgz","integrity":"sha512-V7P/nd/guKZFdKbk5qVAMMnmNsBw0eJeSFgGlJj/fUqq1zENuIOy3KDBPIGniq0yuRobzKm1Ba4VYMkkSDsR+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBdw5Z8CFC0Tq/TwfguSYzZZecrdeJhwrpWUVVZmxw61AiEAqI55ISLQL7xNsELc2DehmaSQPXqGgQCUp6UoTG412oU="}],"size":967,"noattachment":false,"key":"/require-json-tree/-/require-json-tree-1.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"weilu","email":"luwei.here@gmail.com"},"maintainers":[{"name":"weilu","email":"luwei.here@gmail.com"}],"directories":{},"publish_time":1394787710918,"_cnpm_publish_time":1394787710918},"1.0.0":{"name":"require-json-tree","version":"1.0.0","description":"Load a directory containing json files into a hash keyed by filenames","main":"index.js","scripts":{"test":"mocha --reporter list test/*.js"},"author":{"name":"Wei Lu"},"license":"ISC","devDependencies":{"mocha":"^1.17.1"},"_id":"require-json-tree@1.0.0","dist":{"shasum":"57bc7b37f06adfc15e2a7d975bd9a75d460f805f","tarball":"http://registry-npm.ywwl.com/require-json-tree/download/require-json-tree-1.0.0.tgz","integrity":"sha512-DNSnCa6tFUaqZHASWFZrx/+P+EFC4h0/n0gP/Fn6srcBPJYtfbcotVB1U4LWR4L/N55pMcn5VnQ/GpGSAgVpKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID2gvUL3gjH3+ie9HqvR911aBYxPJmMjHiUQOYdzwJPNAiBmDAIKKkwhveIFsi4Cu+7wACxX3U58LwhJ4jt5yyUD3A=="}],"size":955,"noattachment":false,"key":"/require-json-tree/-/require-json-tree-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"weilu","email":"luwei.here@gmail.com"},"maintainers":[{"name":"weilu","email":"luwei.here@gmail.com"}],"directories":{},"publish_time":1394512217532,"_cnpm_publish_time":1394512217532}},"readme":"require-json-tree\n=================\n\nLoad a directory containing json files into a hash keyed by filenames\n\n`npm install require-json-tree`\n\n## Usage\n\n    index.js\n    tree\n    ├── file1.json\n    └── file2.json\n\n```javascript\n// index.js\nvar path = require('path')\nvar requireJsonTree = require('require-json-tree')\nvar tree = requireJsonTree(path.join(__dirname, 'tree')) // absolute path only\n\nconsole.log(tree)\n// { file1: [ 'foo', 'bar' ], file2: { foo: 'bar' } }\n```\n","_attachments":{},"license":"ISC"}