From 509953102b32fcba33ffdb10833b3ef6c7130939 Mon Sep 17 00:00:00 2001 From: Adrian Lehmann Date: Mon, 3 Sep 2018 16:02:35 +0200 Subject: [PATCH] Bump version closes #3 --- README.md | 9 ++++++++- package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 362079b..9ccb1f1 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This uses the native async/await support in Node 7.x and newer to let you `await `npm install -g async-repl` -## Example +## Examples ``` $ async-repl @@ -21,6 +21,13 @@ async> x async> ``` +```js +const repl = require('repl'); +const stubber = require('async-repl/stubber'); +const replInstance = repl.start({ prompt: 'my-fancy-repl> ' }); +stubber(replInstance); +``` + ## Caveats * This tool doesn't support multi-line input. diff --git a/package.json b/package.json index be005f3..4b0788f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "async-repl", - "version": "0.3.0", + "version": "0.4.0", "description": "Node repl that supports \"await\".", "bin": { "async-repl": "index.js"