A robust library to generate sequential alphanumeric codes (folios) like A00001, A00002, ..., Z99999, AA00001.
This repository contains production-ready implementations in:
- Sequential Generation: Automatically increments numbers and letters (e.g.,
A00001->A00002). - Configurable Format: Custom padding (e.g., 3 digits) and separators (e.g.,
A-001). - Collision Handling: Robust logic to check against a database and skip existing folios.
- Type Safety: Full type support in TypeScript.
- Production Ready: Comprehensive tests and strict validation, actively used in production projects.
- Zero Dependencies: No runtime dependencies in either package.
Please refer to the specific package directory for detailed installation and usage instructions:
Contributions are welcome! Please read CONTRIBUTING.md for guidelines on how to submit issues, feature requests, and pull requests.
If you discover a security vulnerability, please follow the process described in SECURITY.md.
This project is licensed under the MIT License - see the LICENSE file for details.