es6-repl
Repl with yield
Last updated 10 months ago by sven199109 .
MIT · Original npm · Tarball
$ cnpm install es6-repl 
SYNC missed versions from official npm registry.

Es6-repl

Write non-blocking code in a nice-ish way in a node.js repl. Based on Co.

NOTE

This is an ALPHA version. There are some problems with repl context.

Install

npm install es6-repl

Usage

var repl = require('es6-repl')
repl.start({
  prompt: 'es6-node> ',
  useColors: true
}).on('exit', () => process.exit())

In repl,

> var user = yield models.User.findOne()
> user
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |