{"library":"export-files","type":"library","category":null,"description":"export-files is a Node.js utility designed to automatically export all JavaScript files within a specified directory as modules. It provides a simple mechanism to aggregate multiple source files into a single object, where each file's export becomes a property. The current stable version is 3.0.2, with previous major breaking changes noted in v3.0.0 and v0.2.0. A key differentiator is its exclusive focus on CommonJS `require` syntax, explicitly stating it does not support ES Module `import` statements. It offers robust features like recursive directory processing, file filtering, and customizable key casing for the exported modules, making it suitable for organizing larger Node.js projects into modular structures without manual `require` statements for every file.","language":"javascript","status":"active","version":"3.0.2","tags":["javascript","export","exports","file","files","module","modules"],"last_verified":"Wed May 27","install":[{"cmd":"npm install export-files","imports":["const exportFiles = require('export-files');","module.exports = require('export-files')(__dirname);","const modules = require('export-files')(__dirname, null, { recursive: true, ignoreDirs: [] });"]},{"cmd":"yarn add export-files","imports":[]},{"cmd":"pnpm add export-files","imports":[]}],"homepage":null,"github":"https://github.com/jonschlinkert/export-files","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/export-files","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/export-files/compatibility"}}