Skip to content

Commit 24ef510

Browse files
committed
Add ES6 import guide
1 parent ae8396c commit 24ef510

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ Please note that `@next` only points to pre-releases that are not suitable for p
3838
To get the latest stable release omit `@next` part altogether or use `@latest` instead.
3939

4040
```javascript
41+
// If you are using CommonJS
4142
var neo4j = require('neo4j-driver')
43+
// Alternatively, if you are using ES6
44+
import neo4j from 'neo4j-driver'
4245
```
4346

4447
Driver instance should be closed when Node.js application exits:

packages/neo4j-driver/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ Please note that `@next` only points to pre-releases that are not suitable for p
3838
To get the latest stable release omit `@next` part altogether or use `@latest` instead.
3939

4040
```javascript
41+
// If you are using CommonJS
4142
var neo4j = require('neo4j-driver')
43+
// Alternatively, if you are using ES6
44+
import neo4j from 'neo4j-driver'
4245
```
4346

4447
Driver instance should be closed when Node.js application exits:

0 commit comments

Comments
 (0)