neo4j-driver-init
Advanced tools
Comparing version 1.0.4 to 1.0.5
15
index.js
const neo4j = require("neo4j-driver"); | ||
const neo4jDriverInit = function (port, host, username, password){ | ||
module.exports = function (port, host, username, password){ | ||
return neo4j.driver( | ||
@@ -10,6 +10,9 @@ `${host}:${port}`, | ||
) | ||
); | ||
} | ||
module.exports = neo4jDriverInit; | ||
).verifyConnectivity() | ||
.then(serverInfo => { | ||
console.log(`Driver created successfully ${serverInfo}`); | ||
}) | ||
.catch(error => { | ||
console.log(error); | ||
}); | ||
}; |
{ | ||
"name": "neo4j-driver-init", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Neo4j Driver Initialization", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
665
15
0