Saving text using with require statement

This commit is contained in:
Amitesh Kumar
2016-10-14 12:09:50 +05:30
committed by GitHub
parent 5ed507ef8a
commit cafa1bfebb
+7
View File
@@ -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