{"_id":"@adoyle.me/import-modules","_rev":"2-b8f7b687e1d994b461515e8072d95229","name":"@adoyle.me/import-modules","dist-tags":{"latest":"2.1.0"},"versions":{"2.0.0":{"name":"@adoyle.me/import-modules","version":"2.0.0","description":"Import all modules in a directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/import-files.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"xo":{"ignores":["fixture"]},"keywords":["import","require","files","modules","all","directory","folder","js","paths","multiple","index"],"devDependencies":{"ava":"^2.4.0","xo":"^0.25.3"},"gitHead":"203f51c63e5e5779cf7e9e9de44fc3ea41d9df3b","bugs":{"url":"https://github.com/sindresorhus/import-files/issues"},"homepage":"https://github.com/sindresorhus/import-files#readme","_id":"@adoyle.me/import-modules@2.0.0","_nodeVersion":"12.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fBnPLkMe8JYRWknzJyThM80Hg8ihQkLDXHIm6TQRLd976dgjQqtHhbu3Cl5S9JE25LiVFva0gbdR/p35MdrokQ==","shasum":"f4be4f58b3aef9e78d04f6ea490fada32b69b14f","tarball":"https://registry.npmjs.org/@adoyle.me/import-modules/-/import-modules-2.0.0.tgz","fileCount":4,"unpackedSize":4615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftzdACRA9TVsSAnZWagAAXd8P/3zbL2MW73HKXiVxE+hC\njaUS2DUbPm4Ock56fOmFp6FAutYX6q7PkbhQ3IcF3R4CRxprnxOlePmudaM9\n5uZ0GDxqSnywgzlx3hVZAqNG023aloGdg0HI6c/O3DX8Kklty6fovjZuKQe3\nA0i413bpCJEnnRJ0ATgy0kxbuvBIpNvQli3YigjDqlljmWERwOYDLC88Sv7f\ns7CiJTDPqRBQyOY8h7BXreHBnx0X+CZMhG5PXRhYwjoQalGllHg4UroIyDmC\nSwWZPTYLQA/F9MYrXHZO8DCCJBIeatUKPEYkRaVyEj9Y7ZDkAYwJgt1V+GSg\nsER1myUFvY8nceU6OtdgbX/gzBHvcBTftA9M/FExgyRusTyVF+z1R71ZUDAj\nhYp7azkDXxJlEd310d4t2ukyubNZqu8V/O5wxMfqVmphL4Jobf1AQInEqIBc\nnrTCY8t+MTJ7ntAOV/ytcOVU3L3hGe3B1UVGUfLNXkl0qu6sM5ElRLoRS1FP\nPTo0x5Y9n/2TDvRUyJ1U3BJIESRUkZzC1MeG5NghOaLdgO/EUhItYJkhwbJt\nCCZLfb1sVzJ1cLpqTLBzHniGIdtr5p/xpXzNoapamLGhkhRNWRdy527XpFV+\np5RFLskhqrWdvxoEI3lJfZM7bLso6x7FqO+W8/PA2iaaypR/0kIIm8RXrIYJ\nCVOa\r\n=RT2i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpdWKxenGCxThXT7dPlTeG2QGcr9HkSLazWXRCWR2cLAIgVKGsQ4X/bJ6CEXBQr2hSmW5wZ05qLDbCyHYNu6jfTRQ="}]},"_npmUser":{"name":"adoyle","email":"adoyle.h@gmail.com"},"directories":{},"maintainers":[{"name":"adoyle","email":"adoyle.h@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-modules_2.0.0_1605842752439_0.6561518639452204"},"_hasShrinkwrap":false},"2.1.0":{"name":"@adoyle.me/import-modules","version":"2.1.0","description":"Import all modules in a directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/import-files.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"xo":{"ignores":["fixture"]},"keywords":["import","require","files","modules","all","directory","folder","js","paths","multiple","index"],"devDependencies":{"ava":"^2.4.0","xo":"^0.25.3"},"gitHead":"4255e3a29b06e07f0a6b0074f8cb55a301bb9030","bugs":{"url":"https://github.com/sindresorhus/import-files/issues"},"homepage":"https://github.com/sindresorhus/import-files#readme","_id":"@adoyle.me/import-modules@2.1.0","_nodeVersion":"12.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-LPnw+KdYECCBjVp4ye03P9MxX7oAaeYbzGSforp5KVadMRQrolKRNpjfuvRuC5FhwhMuzWX6wi4rEuvwHx49TA==","shasum":"7d15691c8e13881dd51c6173294ec070fa3920d7","tarball":"https://registry.npmjs.org/@adoyle.me/import-modules/-/import-modules-2.1.0.tgz","fileCount":4,"unpackedSize":4723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfurodCRA9TVsSAnZWagAAfHEP/1EYdaZMZTPTwWAMKY5E\noz4i5qLVHFs8QJmotKFPo2Ky832P896pNhlpvFNqbbXm6FEZ64sT+ghjj60G\nBMcQOTXXrChtuuWNThdX7yvNj8yeRkMlQOV0bocSY+7Mn7dsBgvCA0QFjdCc\ndbrOr7kVc1HXzgdwlMV9Rt2k9h94ZtWarFIQwihZRU4K9SLpa9p3RPJOD0oq\nxJRzb42+RgMjSaL5zCqsFrkoYDoLVpoRgxPkMibE6Bwl9D5WI+IF1M4ZDUiU\nXr0BK8OJgyivT1BewfzoCW7wpi/Puw0ZsBKQurXgpyCazYhkBBOeCYejgyzo\nFBWR2P8Bl2K/iW+wYYTjxDzylUO84D2+uy40T+gaBpdcVIyHgP6LFvYbrY4a\nSH4O9GtBM0wN7UyLwAEsl0sbJoqaEAYzabvDRWoFwAmzd4RtCVbf/fOXQCEU\n8CPfRK/YzZ1n63P1H985KqX4wzC5fz4iRa7OkLxCfBqPBDl5I/GB3Pu3hHEP\nqm0W+Kp5PW7AXqT8g1paDwffReCG/NqJirwkMEXx86Hsd03oWiyRh8JUWZbp\ntqjX/e/hjdYIp1MObtcGrpAEtzVI7QPZJENs4xcQaFhIQQXeAKkHPVfdtLMT\n4SkjYNw6qwLp6dxLW/dCr5e3xgdppLeyMk4tWW8/+HCnTkbpnFIFbgiZtsUI\niw5F\r\n=yPGB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRKB40++DbId0Jnrq8/aq3uczt+TKTuCdSBahaI1XISAIhAMJRZDnil54oOAN/oKRgywy/sqU2mCxj8eTGKmpQvkab"}]},"_npmUser":{"name":"adoyle","email":"adoyle.h@gmail.com"},"directories":{},"maintainers":[{"name":"adoyle","email":"adoyle.h@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-modules_2.1.0_1606072860850_0.4588242689397757"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-20T03:25:52.255Z","2.0.0":"2020-11-20T03:25:52.540Z","modified":"2022-04-04T11:36:32.366Z","2.1.0":"2020-11-22T19:21:00.986Z"},"maintainers":[{"name":"adoyle","email":"adoyle.h@gmail.com"}],"description":"Import all modules in a directory","homepage":"https://github.com/sindresorhus/import-files#readme","keywords":["import","require","files","modules","all","directory","folder","js","paths","multiple","index"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/import-files.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/import-files/issues"},"license":"MIT","readme":"# import-modules [![Build Status](https://travis-ci.org/sindresorhus/import-modules.svg?branch=master)](https://travis-ci.org/sindresorhus/import-modules)\n\n> Import all modules in a directory\n\n*This module is intentionally simple. Not interested in more features.*\n\n\n## Install\n\n```\n$ npm install import-modules\n```\n\n\n## Usage\n\n```\n.\n└── directory\n    ├── foo-bar.js\n    └── baz-faz.js\n```\n\n```js\nconst importModules = require('import-modules');\n\nconst modules = importModules('directory');\n\nconsole.log(modules);\n//=> {fooBar: [Function], bazFaz: [Function]}\n```\n\n\n## API\n\n### importModules(directory?, options?)\n\n#### directory\n\nType: `string`<br>\nDefault: `__dirname`\n\nDirectory to import modules from. Unless you've set the `fileExtensions` option, 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`) and snake-style names (`foo_bar`) to camel-case (`fooBar`).\n\n##### fileExtensions\n\nType: `string[]`<br>\nDefault: `['.js', '.json', '.node']`\n\nFile extensions to look for. Order matters.\n\n\n## Related\n\n- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path\n- [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory\n- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import a module lazily\n","readmeFilename":"readme.md"}