Skip to content

Commit f4ddd15

Browse files
committed
docs: Update meta
Signed-off-by: Richie Bendall <[email protected]>
1 parent 8bf6441 commit f4ddd15

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,22 @@ $ npm install fetch-blob
1818
```js
1919
const Blob = require('fetch-blob');
2020
const fetch = require('node-fetch');
21+
2122
fetch('https://httpbin.org/post', {
22-
method: 'POST',
23-
body: new Blob(['hello'], { type: 'text/plain' })
24-
})
25-
.then(res => res.json()) // expecting a json response
23+
method: 'POST',
24+
body: new Blob(['hello'], { type: 'text/plain' })
25+
})
26+
.then(res => res.json());
2627
.then(json => console.log(json));
2728
```
2829

29-
See [MDN doc](https://developer.mozilla.org/en-US/docs/Web/API/Blob) and [Tests](https://github.com/bitinn/fetch-blob/blob/master/test.js) for more details.
30+
See [MDN doc](https://developer.mozilla.org/en-US/docs/Web/API/Blob) and [Tests](https://github.com/node-fetch/fetch-blob/blob/master/test.js) for more details.
3031

3132
[npm-image]: https://flat.badgen.net/npm/v/fetch-blob
3233
[npm-url]: https://www.npmjs.com/package/fetch-blob
33-
[travis-image]: https://flat.badgen.net/travis/bitinn/fetch-blob
34-
[travis-url]: https://travis-ci.org/bitinn/fetch-blob
35-
[codecov-image]: https://flat.badgen.net/codecov/c/github/bitinn/fetch-blob/master
36-
[codecov-url]: https://codecov.io/gh/bitinn/fetch-blob
34+
[travis-image]: https://flat.badgen.net/travis/node-fetch/fetch-blob
35+
[travis-url]: https://travis-ci.org/node-fetch/fetch-blob
36+
[codecov-image]: https://flat.badgen.net/codecov/c/github/node-fetch/fetch-blob/master
37+
[codecov-url]: https://codecov.io/gh/node-fetch/fetch-blob
3738
[install-size-image]: https://flat.badgen.net/packagephobia/install/fetch-blob
3839
[install-size-url]: https://packagephobia.now.sh/result?p=fetch-blob

blob.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ declare const FetchBlob: {
1515
new(blobParts?: BlobPart[], options?: BlobPropertyBag): FetchBlob
1616
};
1717

18-
export = FetchBlob;
18+
export = FetchBlob

0 commit comments

Comments
 (0)