rule-process
v1.4.0
Published
file rule processing tool
Maintainers
Readme
rule-process
1. Project Introduction
rule-process is a flexible file rule processing tool that supports batch file operations, directory structure transformation, and custom rule scripting.
- CLI (Command Line Interface) only
- Flexible definition of input/output directories and rule scripts
- Suitable for batch file renaming, content transformation, and similar scenarios
2. Installation
Node.js >=14.18.0
npm pluginManager rule-process3. Directory Structure
├── src/ # Source code
│ ├── index.js # CLI entry
│ ├── examples/ # Example files
│ ├── core/ # Core logic
│ └── utils/ # Utility methods
├── package.json
├── README.md
└── README-zh.md4. Usage
4.1 CLI Mode
1. Basic Commands
rule-process demo # Create basic example filesrule-process run [options] # Run main command2. Command Options
| Option | Description | Default | |----------------|------------------------------------|-------------------------------| | --input | Input directory | ./examples/inputDir | | --output | Output directory | ./examples/outputDir | | --rule | Rule file path | ./examples/ruleDir/rule.js | | --close | Disable all log output | false | | --size | Force change file read size limit | 2MB | | --encode-input | Force specify input file encoding | Auto-detect |
3. Example
rule-process run --input ./examples/inputDir --output ./examples/outputDir --rule ./examples/ruleDir/rule.js5. Support & Donation
If this project is helpful to you, feel free to support its maintenance:
| Alipay | WeChat Pay |
|-------------------------------------|-----------------------------------|
|
|
|
Donation Notice
- All donations are voluntary
- No services or obligations are attached
- No contractual relationship is formed
7. Disclaimer
This project is open source and for learning and research purposes only.
Any direct or indirect losses arising from the use of this project are the sole responsibility of the user, and the project author assumes no legal liability.
Do not use this project for any illegal purposes or to infringe upon the rights of others.
