promo-generator

0.0.1 • Public • Published

promo-generator

promo-generator provides the ability to generate coupon codes on various parameters. It generates unique, random,and hard to guess coupon codes.

Use cases: programmable building blocks for promo codes, loyalty coupons, gift vouchers, in-app purchases, referral links

Installation

In Node.js

Install with npm:


Include with require:


Usage

Generate 10 codes, each 7 characters long:

promo.generateCoupons({
    length: 7,
    count: 6
});

Sample result: [ 'TB463FD','5M98TE2','CGVHFTT','LI49DVH','SNB7F4S','SSXHJPM' ]

Testing

Install dependencies:

npm install

Run tests:

npm run test

License

Code released under the MIT license.

Package Sidebar

Install

npm i promo-generator

Weekly Downloads

7

Version

0.0.1

License

MIT

Unpacked Size

2.96 kB

Total Files

3

Last publish

Collaborators

  • shajal