Brevity.
This commit is contained in:
parent
69842b8d44
commit
4f066bf00e
19
README.md
19
README.md
|
@ -60,24 +60,15 @@ esConnection.appendToStream(streamName, esClient.expectedVersion.any, event)
|
|||
console.log(err);
|
||||
});
|
||||
```
|
||||
Create ```package.json```:
|
||||
|
||||
Run:
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "hello",
|
||||
"version": "1.0.0",
|
||||
"main": "app.js",
|
||||
"dependencies": {
|
||||
"eventstore-node": "latest",
|
||||
"uuid": "latest"
|
||||
}
|
||||
}
|
||||
npm install uuid
|
||||
npm install eventstore-node
|
||||
node app.js
|
||||
```
|
||||
|
||||
```npm install```
|
||||
|
||||
```node app.js```
|
||||
|
||||
## Porting .Net Task to Node.js
|
||||
|
||||
.Net Task have been replace with Promise. When executing an async command, i.e. appendToStream you can use then/catch to wait for result/error.
|
||||
|
|
Loading…
Reference in New Issue
Block a user