# coupon-generator

> "To Generate Coupon"

Latest version **1.0.4** (published 2018-04-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install coupon-generator
pnpm add coupon-generator
yarn add coupon-generator
bun add coupon-generator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2018-04-25 |
| First published | 2018-04-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rohit Saxena |
| Maintainers | rohit_saxena |

## Links

- npm: https://www.npmjs.com/package/coupon-generator
- npm.io page: https://npm.io/package/coupon-generator

## Dependencies (2)

- [uniqid](https://npm.io/package/uniqid.md) ^4.1.1
- [upper-case](https://npm.io/package/upper-case.md) ^1.1.3

## Recent versions

- 1.0.4 (latest) — 2018-04-25
- 1.0.3 — 2018-04-25
- 1.0.2 — 2018-04-19
- 1.0.1 — 2018-04-19
- 1.0.0 — 2018-04-19

## README

### About
- This Package is used to Generate discount coupon

```javascript

var couponGenerator = require("coupon-generator");

var generateC = couponGenerator
.create('HELPS2020')        // Create function is used to generate coupon
.giveDiscount("10%")       // Discount Percentage
.startingDate("2018-04-19")  // Coupon Valid From Date
.endingDate("2018-04-19")    // Coupon Valid To Date
.canUse("Multiple")       // Can take once or multiple
.ruleFor("300");			// Constraint (Booking Amount Should be equal to 300)

console.log(generateC.parseJson());    // Convert in Json
console.log(generateC.profit(500));     // Calculate Profit 

 ```

---
_Source: https://npm.io/package/coupon-generator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
