File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,22 @@ otherwise application shutdown might hang or it might exit with a non-zero exit
40
40
## Include in web browser
41
41
42
42
We build a special browser version of the driver, which supports connecting to Neo4j over WebSockets.
43
+ It can be included in an HTML page using one of the following tags:
43
44
44
45
``` html
46
+ <!-- Direct reference -->
45
47
<script src =" lib/browser/neo4j-web.min.js" ></script >
48
+
49
+ <!-- unpkg CDN non-minified -->
50
+ <script src =" https://unpkg.com/neo4j-driver" ></script >
51
+ <!-- unpkg CDN minified for production use, version X.Y.Z -->
52
+ <
script src =
" https://unpkg.com/[email protected] /lib/browser/neo4j-web.min.js" ></
script >
53
+
54
+ <!-- jsDelivr CDN non-minified -->
55
+ <script src =" https://cdn.jsdelivr.net/npm/neo4j-driver" ></script >
56
+ <!-- jsDelivr CDN minified for production use, version X.Y.Z -->
57
+ <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] /lib/browser/neo4j-web.min.js" ></
script >
58
+
46
59
```
47
60
48
61
This will make a global ` neo4j ` object available, where you can access the ` v1 ` API at ` neo4j.v1 ` :
Original file line number Diff line number Diff line change 21
21
"browser" : " gulp browser && gulp test-browser"
22
22
},
23
23
"main" : " lib/index.js" ,
24
- "unpkg" : " lib/browser/neo4j-web.min.js" ,
24
+ "unpkg" : " lib/browser/neo4j-web.js" ,
25
+ "jsdelivr" : " lib/browser/neo4j-web.js" ,
25
26
"types" : " types/index.d.ts" ,
26
27
"devDependencies" : {
27
28
"async" : " ^2.4.0" ,
You can’t perform that action at this time.
0 commit comments