Skip to content

Commit

Permalink
docs: update readme examples to be esm (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored Sep 21, 2022
1 parent f1381ed commit e0d1353
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
$ npm i is-ipfs
```

## Lead Maintainer

[Marcin Rataj](https://github.com/lidel)

```bash
$ npm install --save is-ipfs
```
Expand All @@ -56,7 +52,7 @@ $ npm install --save is-ipfs
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.

```js
const isIPFS from 'is-ipfs')
import * as isIPFS from 'is-ipfs'
```

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

```javascript
const isIPFS from 'is-ipfs')
import * as isIPFS from 'is-ipfs'

isIPFS.multihash('QmYjtig7VJQ6XsnUjqqJvj7QaMcCAwtrgNdahSiFofrE7o') // true
isIPFS.multihash('noop') // false
Expand Down

0 comments on commit e0d1353

Please sign in to comment.