{"_id":"req-all","_rev":"166599","name":"req-all","description":"Require all files in a directory","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T11:46:38.000Z","created":"2016-07-05T10:53:14.424Z","2.0.0":"2018-11-08T08:21:14.065Z","1.0.0":"2017-01-13T10:00:05.304Z","0.1.0":"2016-07-05T10:53:14.424Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/req-all.git"},"versions":{"2.0.0":{"name":"req-all","version":"2.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"},"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@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"30bd2b902647776f9252d0660004b5982b07c3a4","size":2244,"noattachment":false,"key":"/req-all/-/req-all-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-all/download/req-all-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/req-all_2.0.0_1541665273930_0.4964028462140391"},"_hasShrinkwrap":false,"publish_time":1541665274065,"_cnpm_publish_time":1541665274065,"deprecated":"Renamed to `import-modules`."},"1.0.0":{"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","size":2269,"noattachment":false,"key":"/req-all/-/req-all-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-all/download/req-all-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-all-1.0.0.tgz_1484301605041_0.9112888923846185"},"directories":{},"publish_time":1484301605304,"_cnpm_publish_time":1484301605304,"_hasShrinkwrap":false},"0.1.0":{"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","size":2253,"noattachment":false,"key":"/req-all/-/req-all-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/req-all/download/req-all-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/req-all-0.1.0.tgz_1467715992276_0.9158428374212235"},"directories":{},"publish_time":1467715994424,"_cnpm_publish_time":1467715994424,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/sindresorhus/req-all#readme","bugs":{"url":"https://github.com/sindresorhus/req-all/issues"},"license":"MIT"}