0.2.0 • Published 7 years ago

repl-x v0.2.0

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

REPL-X

Promise friendly REPL

Installation

npm i repl-x

Usage

To start an REPL server, it's exactly the same as repl module in node.js.

import * as REPLX from 'repl-x'

const server = REPLX.start(/* options */)

Now you can happily play with promise

> (async () => 'hello world')()
Promise { 'hello world' }
>
> @ (async () => 'hello world')()
'hello world'
> 

Here the leading @ symbol will tell the server to await the result of following expression.

0.2.0

7 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago