Skip to content

Commit 909c23f

Browse files
authored
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 909c23f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)