Skip to content

Commit 7c43a97

Browse files
committed
Update README.
1 parent 175d92d commit 7c43a97

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ An alpha-level database driver for a new Neo4j remoting protocol.
44

55
Note: This is in active development, the API is not stable. Please try it out and give us feedback, but expect things to break in the medium term!
66

7-
## Add module to Node.js application
7+
## Include module in Node.js application
88

99
```javascript
1010
var neo4j = require('build/node/neo4j');
@@ -44,8 +44,7 @@ session.run(statement.join(' '), params).subscribe({
4444
onNext: function(record) {
4545
// On receipt of RECORD
4646
for(var i in record) {
47-
console.log(i);
48-
console.log(record[i]);
47+
console.log(i, ': ', record[i]);
4948
}
5049
}, onCompleted: function(metadata) {
5150
console.log(metadata);
@@ -55,13 +54,12 @@ session.run(statement.join(' '), params).subscribe({
5554
});
5655

5756
// or
58-
// the collect way, with Javascript promises:
57+
// the Promise way, where the complete response is collected:
5958
session.run(statement.join(' '), params)
6059
.then(function(records){
6160
records.forEach(function(record) {
6261
for(var i in record) {
63-
console.log(i);
64-
console.log(record[i]);
62+
console.log(i, ': ', record[i]);
6563
}
6664
})
6765
})
@@ -73,14 +71,14 @@ session.run(statement.join(' '), params)
7371
## Building
7472

7573
npm install
76-
gulp
74+
npm build
7775

78-
This produces browser-compatible standalone files under `build/browser` and a nodejs module version under `build/node`.
76+
This produces browser-compatible standalone files under `build/browser` and a Node.js module version under `build/node`.
7977
See files under `examples/` on how to use.
8078

8179
## Testing
8280

8381
./runTests.sh
8482

8583
This runs the test suite against a fresh download of Neo4j.
86-
Or `gulp test` if you already have a running version of a compatible Neo4j server.
84+
Or `npm test` if you already have a running version of a compatible Neo4j server.

0 commit comments

Comments
 (0)