File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 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
4040## Include in web browser
4141
4242We 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:
4344
4445``` html
46+ <!-- Direct reference -->
4547<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/neo4j-driver@X.Y.Z/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/neo4j-driver@X.Y.Z/lib/browser/neo4j-web.min.js" ></script >
58+
4659```
4760
4861This 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 2121 "browser" : " gulp browser && gulp test-browser"
2222 },
2323 "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" ,
2526 "types" : " types/index.d.ts" ,
2627 "devDependencies" : {
2728 "async" : " ^2.4.0" ,
You can’t perform that action at this time.
0 commit comments