A Node.js utility for processing and storing numbers with optional hash generation and MongoDB integration.
- Generate SHA256 hashes for numbers
- Configurable batch processing for MongoDB insertions
- Customizable batch sizes for optimal performance
npm install
- Node.js (v12 or higher recommended)
- MongoDB (if using database features)
Basic command syntax:
node index.js [OPTIONS]
Option | Description |
---|---|
--generate-hashes |
Generate SHA256 hashes for each number |
--batch-size <number> |
Set the batch size for MongoDB inserts (default: 10000) |
--help , -h , -H |
Display help message |
Generate hashes with default batch size:
node index.js --generate-hashes
Generate hashes with custom batch size:
node index.js --generate-hashes --batch-size 5000
Display help message:
node index.js --help
The default batch size is set to 10000, but can be adjusted based on your system's performance requirements and available resources.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
mukileta za kabej tutanunua server na domain. domain ni $10 server monthly ni $20 baas api inaeza run for everyone.