Skip to content

Commit 422d823

Browse files
committed
Update README to use default export and destructure on default export.
1 parent 5367858 commit 422d823

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ jspm install npm:jsonld
168168
```
169169

170170
``` js
171-
import * as jsonld from 'jsonld';
171+
import jsonld from 'jsonld';
172172
// or
173-
import {promises} from 'jsonld';
173+
const {promises} = jsonld;
174174
// or
175-
import {JsonLdProcessor} from 'jsonld';
175+
const {JsonLdProcessor} = jsonld;
176176
```
177177

178178
### Node.js native canonize bindings

0 commit comments

Comments
 (0)