generate-coupon-code
v1.0.0
Published
## System Requirement
Downloads
3
Readme
Generate coupon code
System Requirement
NodeJS: 14.x.x or above
Sample code
const CHARSET = {
numbers: '0123456789',
alphabetic: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
alphanumeric: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
}
const codes: string[] = generate({
bridget: '',
timestamp: false,
length: 9,
batchSize: 3,
count: 1e6,
charset: CHARSET.alphanumeric,
prefix: 'SAMPLE-PREFIX',
postfix: 'SAMPLE-POSTFIX'
})