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"