【文件属性】:
文件名称:nodejs-repl-plus:包含电池的节点REPL
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-24 05:54:05
JavaScript
代表
电池包括具有良率支持的节点REPL。
repl-plus通过对Promise和Generator的支持增强了基本节点REPL。 Shell会自动解析变量,这些变量在实现时即为承诺。 此模块旨在单独使用或作为为您自己的项目创建自定义REPL Shell的基础。
安装
npm install repl-plus
您可能需要在全球范围内安装,以便每天可以从此REPL提供的增强功能中受益。
用法
# assumes a global install
$ repl-plus
To exit press ^C twice, or ^D once.
repl+> var d = q.defer(), p = d.promise;
repl+> d.resolve(22);
resolved: p
repl+> p
22
repl+> b = yield q(44)
44
repl+>
一个使
【文件预览】:
nodejs-repl-plus-master
----.gitignore(83B)
----package.json(678B)
----index.js(160B)
----LICENSE.txt(1KB)
----examples()
--------models()
--------mongoose.js(206B)
----README.md(1KB)
----lib()
--------repl-plus.js(6KB)
--------mongoose-repl-plus.js(5KB)