{"library":"requireindex","type":"library","category":null,"description":"requireindex is a utility for Node.js CommonJS environments that simplifies the creation of `index.js` files by automatically requiring and exporting sibling modules within a directory. It aggregates modules into a single object, with keys corresponding to file basenames. It supports nested directories, allows explicit file inclusion, and respects a convention for private modules (prefixing with an underscore). The current stable version is 1.2.0, which was last published over 8 years ago, indicating the package is no longer actively maintained. It offers a concise alternative to manually writing multiple `require()` statements for structuring CommonJS projects, though its relevance has diminished with the widespread adoption of ES Modules.","language":"javascript","status":"abandoned","version":"1.2.0","tags":["javascript","require","index","index.js"],"install":[{"cmd":"npm install requireindex","imports":["const requireIndex = require('requireindex');","module.exports = require('requireindex')(__dirname);","module.exports = require('requireindex')(__dirname, ['file1', 'file2']);"]},{"cmd":"yarn add requireindex","imports":[]},{"cmd":"pnpm add requireindex","imports":[]}],"homepage":null,"github":"https://github.com/stephenhandley/requireindex","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/requireindex","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/requireindex/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}