Skip to content

Commit

Permalink
Merge pull request eligrey#273 from Amitesh/require-syntax-usage
Browse files Browse the repository at this point in the history
 Saving text using with require statement
  • Loading branch information
jimmywarting authored Oct 14, 2016
2 parents 5ed507e + cafa1bf commit aa9f4e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ Pass `true` for `disableAutoBOM` if you don't want FileSaver.js to automatically
Examples
--------

### Saving text using with require
```js
var FileSaver = require('file-saver');
var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
FileSaver.saveAs(blob, "hello world.txt");
```

### Saving text

```js
Expand Down

0 comments on commit aa9f4e0

Please sign in to comment.