From 4f066bf00e51b38053d1e1c35154861b840ff20f Mon Sep 17 00:00:00 2001 From: Robert on Asus 305 Date: Sat, 29 Oct 2016 16:41:08 -0700 Subject: [PATCH] Brevity. --- README.md | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index a3159df..be9e115 100644 --- a/README.md +++ b/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.