File-bundler is a CLI and library tool that bundles multiple files into a single file for easy distribution and sharing. It supports any file format and provides a simple API for programmatic use. The current stable version is 2.2.0, with a low release cadence. Unlike other bundlers, it targets general file aggregation rather than JavaScript module bundling, making it suitable for packaging assets, configuration files, or documentation.
npm install file-bundlerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: bundling multiple files into one output with the bundle function.
Use async/await or promises instead of synchronous calls.
Use import syntax or set 'type': 'module' in package.json.
Replace 'new FileBundler().bundle(...)' with 'bundle(...)'.
Check files array length before calling bundle.
Ensure the output directory exists before bundling.
Stream files individually or use alternative tools for large files.
Use import fileBundler from 'file-bundler' or use the named import { bundle }.Run npm install file-bundler in your project.
Create the output directory before bundling, e.g., mkdir -p ./dist.
Pass a non-empty array of file paths as the 'files' option.
No dependency data recorded yet.