quickid
Version:
Quick ID is a lightweight and efficient npm package designed to generate unique and random IDs effortlessly. With simplicity in mind, Quick ID provides a single function, quickId(), which returns a randomly generated alphanumeric string of a specified len
36 lines (26 loc) • 1.31 kB
Markdown
is a lightweight and efficient npm package designed to generate unique and random IDs effortlessly. With simplicity in mind, Quick ID provides a single function, `generate()`, which returns a randomly generated alphanumeric string of a specified length.
- **Easy Integration:** Incorporate Quick ID seamlessly into your projects with a single function call.
- **Customizable Length:** Tailor the length of the generated IDs to suit your specific requirements.
- **Efficient and Lightweight:** Quick ID is designed for efficiency, ensuring minimal impact on performance while delivering reliable and unique identifiers.
Install Quick ID in your project using npm:
```bash
npm install quickid or yarn add quickid
```
``` javascript
const quickId = require('quickid');
// Generate a default 8-character ID
const id = quickId.generate();
console.log(id);
```
You can customize the length of the generated ID by providing an argument to the generate function:
```javascript
const customLength = 12;
const customId = quickId.generate(customLength);
console.log(customId);
```
Contributions are welcome! If you encounter a bug or have a feature request, please open an issue or submit a pull request.
quickid