condensed
v0.0.7
Published
A CLI tool to compile files from a folder into a single file or clipboard
Maintainers
Readme
Condensed CLI
A flexible Node.js CLI tool to compile multiple files from a folder into a single file or clipboard, with robust gitignore-like filtering.
🚀 Features
- 📁 Compile multiple files from a source directory into a single output
- 🔍 Respect
.gitignorerules automatically - 📋 Option to copy compiled content directly to clipboard
- 🧩 Flexible ignore pattern support
- 💻 Easy-to-use command-line interface
📦 Installation
You can install the package globally using npm:
npm install -g condensedOr install it as a dev dependency in your project:
npm install --save-dev condensed💡 Usage
Basic Usage
Compile files from a source directory to an output file:
condensed /path/to/source /path/to/output.txtCopy to Clipboard
Compile files and copy directly to clipboard:
condensed /path/to/source -cAdditional Ignore Patterns
Add custom ignore patterns alongside .gitignore:
condensed /path/to/source /path/to/output.txt -i "node_modules,*.log"🔧 CLI Options
| Option | Shorthand | Description | Example |
| ------------- | --------- | -------------------------------------------- | ------------------------- |
| --output | -o | Specify output file path | -o compiled.txt |
| --ignore | -i | Additional ignore patterns (comma-separated) | -i "node_modules,*.log" |
| --clipboard | -c | Copy output to clipboard | -c |
📝 Example Scenarios
- Compile a project's source code:
condensed ./src ./combined-source.txt- Copy TypeScript files to clipboard, excluding test files:
condensed ./src -c -i "**/*.test.ts,**/*.spec.ts"🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Development Setup
- Clone the repository
- Install dependencies:
npm install - Build the project:
npm run build - Run tests:
npm test
📄 License
MIT License
🐛 Issues
Found a bug? Please file an issue on our GitHub repository.
