Skip to content

Commit

Permalink
readme - use in a browser
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaszWiktor committed Dec 2, 2015
1 parent b1b066d commit 2af1191
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Generate unique, hard to guess coupon, voucher codes.

This library originates from [Voucherify](http://www.voucherify.io/?utm_source=inbound&utm_medium=github&utm_campaign=js-voucher-code-generator-beta).

### Usage
### Installation

#### In Node.js

Install with npm:

Expand All @@ -13,10 +15,19 @@ $ npm install --save voucher-code-generator
```

Include with require:

```
var voucher_codes = require('voucher-code-generator');
```

#### In a browser

```
<script src="voucher_codes.js"></script>
```

### Usage

Generate 5 codes, each 8 characters long:
```
voucher_codes.generate({
Expand Down

0 comments on commit 2af1191

Please sign in to comment.