{"name":"req-all","version":"1.0.0","description":"Require all files in a directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/req-all.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["require","files","modules","all","directory","dir","folder","js","paths","multiple","index"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"c47da0e9490d72b09a7c712269bf53870386e470","bugs":{"url":"https://github.com/sindresorhus/req-all/issues"},"homepage":"https://github.com/sindresorhus/req-all#readme","_id":"req-all@1.0.0","_shasum":"d128569451c340b432409c656cf166260cd2628d","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d128569451c340b432409c656cf166260cd2628d","tarball":"http://registry-npm.ywwl.com/req-all/download/req-all-1.0.0.tgz","integrity":"sha512-k8RAnaq+vrezRAZWQlI6sbwGIlII699fnPYamb8K0UVgQel3Wb6YgPfpGyair00vmArXNag1vr5PjwDQBE7DUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICN9/B/d1TW1VVXIdtepd78VzcNgitVRjJTcKTUuDN6AAiEAyxNod6gaJmwP6r10928Dojl8IAlGSUCbyCEpMhFf7iY="}],"size":2269,"noattachment":false,"key":"/req-all/-/req-all-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-all-1.0.0.tgz_1484301605041_0.9112888923846185"},"directories":{},"readme":"# req-all [![Build Status](https://travis-ci.org/sindresorhus/req-all.svg?branch=master)](https://travis-ci.org/sindresorhus/req-all)\n\n> Require all files in a directory\n\n*This module is intentionally simple. Not interested in more features.*\n\n\n## Install\n\n```\n$ npm install --save req-all\n```\n\n\n## Usage\n\n```\n.\n└── dir\n    ├── foo-bar.js\n    └── baz-faz.js\n```\n\n```js\nconst reqAll = require('req-all');\nconst modules = reqAll('dir');\n\nconsole.log(modules);\n//=> {fooBar: [Function], bazFaz: [Function]}\n```\n\n\n## API\n\n### reqAll([directory], [options])\n\n#### directory\n\nType: `string`<br>\nDefault: `__dirname`\n\nDirectory to require supported files in. Unless you've modified [`require.extensions`](https://nodejs.org/api/globals.html#globals_require_extensions), that means any `.js`, `.json`, `.node` files, in that order. Does not recurse. Ignores the caller file and files starting with `.` or `_`.\n\n#### options\n\nType: `Object`\n\n##### camelize\n\nType: `boolean`<br>\nDefault: `true`\n\nConvert dash-style names (`foo-bar`) to camel-case (`fooBar`).\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","publish_time":1484301605304,"_cnpm_publish_time":1484301605304,"dist-tags":{"latest":"2.0.0"}}