Skip to content

Commit b1ab588

Browse files
tripulsejimmywarting
authored andcommitted
Update README.md
1 parent 4a73fd7 commit b1ab588

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ saveAs must be run within a user interaction event such as onTouchDown or onClic
5454

5555
Syntax
5656
------
57-
### Import saveAs() from file-saver
57+
### Import `saveAs()` from file-saver
5858
```js
5959
import { saveAs } from 'file-saver';
6060
```
@@ -68,7 +68,7 @@ Pass `{ autoBOM: true }` if you want FileSaver.js to automatically provide Unico
6868
Examples
6969
--------
7070

71-
### Saving text using require
71+
### Saving text using `require()`
7272
```js
7373
var FileSaver = require('file-saver');
7474
var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
@@ -96,7 +96,6 @@ The standard W3C File API [`Blob`][4] interface is not available in all browsers
9696
[Blob.js][5] is a cross-browser `Blob` implementation that solves this.
9797

9898
### Saving a canvas
99-
10099
```js
101100
var canvas = document.getElementById("my-canvas");
102101
canvas.toBlob(function(blob) {
@@ -138,12 +137,14 @@ Installation
138137
------------------
139138

140139
```bash
140+
# Basic Node.JS installation
141141
npm install file-saver --save
142142
bower install file-saver
143143
```
144144

145145
Additionally, TypeScript definitions can be installed via:
146146

147147
```bash
148+
# Additional typescript definitions
148149
npm install @types/file-saver --save-dev
149150
```

0 commit comments

Comments
 (0)