Skip to content

Commit 2f4a21c

Browse files
committed
- Docs: Fix import (fixes #100)
1 parent 0c810d4 commit 2f4a21c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ You may also use ES6 Module imports (for modern browsers):
7777

7878
```html
7979
<script type="module">
80-
import JSONPath from './node_modules/jsonpath-plus/dist/index-es.js';
80+
import {JSONPath} from './node_modules/jsonpath-plus/dist/index-es.js';
8181
const result = JSONPath({path: '...', json: ...});
8282
</script>
8383
```
@@ -87,7 +87,7 @@ const result = JSONPath({path: '...', json: ...});
8787
Or if you are bundling your JavaScript (e.g., with Rollup), just use:
8888

8989
```js
90-
import JSONPath from 'jsonpath-plus';
90+
import {JSONPath} from 'jsonpath-plus';
9191

9292
const result = JSONPath({path: '...', json});
9393
```

0 commit comments

Comments
 (0)