Skip to content

Commit 7a93609

Browse files
committed
Update README with ES6 import example.
Add ES6 import syntax for `jsonld` in README. The other import styles will not work with Node.js, so this marks out the happy path for Node devs.
1 parent 19d55bd commit 7a93609

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ npm install jsonld
9494
const jsonld = require('jsonld');
9595
```
9696

97+
```js
98+
import jsonld from 'jsonld';
99+
```
100+
97101
### Browser (bundler) + npm
98102

99103
```

0 commit comments

Comments
 (0)