randfid
v1.0.1
Published
Generates formated random IDs based on a specified format
Downloads
1
Readme
randfid
Generates formatted random IDs based on a specified format.
Installation
You can install this package using npm:
npm install randfid
# Formats accepted -> Uppercase letter 'A', digit '0', underscore '_', hyphen '-' in any order you want.
## Usage
```javascript
const generateID = require('randfid');
const randomString = generateID("A00-AA");
console.log(randomString); // Example output: A12-BC