Skip to content

Commit e0d1353

Browse files
authored
docs: update readme examples to be esm (#55)
1 parent f1381ed commit e0d1353

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@
4343
$ npm i is-ipfs
4444
```
4545

46-
## Lead Maintainer
47-
48-
[Marcin Rataj](https://github.com/lidel)
49-
5046
```bash
5147
$ npm install --save is-ipfs
5248
```
@@ -56,7 +52,7 @@ $ npm install --save is-ipfs
5652
The code published to npm that gets loaded on require is in fact an ES5 transpiled version with the right shims added. This means that you can require it and use with your favorite bundler without having to adjust asset management process.
5753

5854
```js
59-
const isIPFS from 'is-ipfs')
55+
import * as isIPFS from 'is-ipfs'
6056
```
6157

6258
### In the Browser through `<script>` tag
@@ -72,7 +68,7 @@ Loading this module through a script tag will make the `IsIpfs` obj available in
7268
# Usage
7369

7470
```javascript
75-
const isIPFS from 'is-ipfs')
71+
import * as isIPFS from 'is-ipfs'
7672

7773
isIPFS.multihash('QmYjtig7VJQ6XsnUjqqJvj7QaMcCAwtrgNdahSiFofrE7o') // true
7874
isIPFS.multihash('noop') // false

0 commit comments

Comments
 (0)