{"name":"req-all","version":"0.1.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":"*"},"xo":{"esnext":true},"gitHead":"6d038f76e8aedcf36acfd43d7abd788d87c32941","bugs":{"url":"https://github.com/sindresorhus/req-all/issues"},"homepage":"https://github.com/sindresorhus/req-all#readme","_id":"req-all@0.1.0","_shasum":"130051e2ace58a02eacbfc9d448577a736a9273a","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"130051e2ace58a02eacbfc9d448577a736a9273a","tarball":"http://registry-npm.ywwl.com/req-all/download/req-all-0.1.0.tgz","integrity":"sha512-ZdvPr8uXy9ujX3KujwE2P1HWkMYgogIhqeAeyb47MqWjSfyxERSm0TNbN/IapCCmWDufXab04AYrRgObaJCJ6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoegpsXxH6tojwgV4vztf3lYr13P3i0wh/3tAMmceGiQIgLHjZep1sPA+sLyPfE2BahOpYQHnokqIyBN71giE3GA4="}],"size":2253,"noattachment":false,"key":"/req-all/-/req-all-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-all-0.1.0.tgz_1467715992276_0.9158428374212235"},"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":1467715994424,"_cnpm_publish_time":1467715994424,"dist-tags":{"latest":"2.0.0"}}