【文件属性】:
文件名称:pr-edge:承诺的 edge.js
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-07 23:19:32
JavaScript
前缘
承诺的 edge.js
用法
var edge = require ( 'pr-edge' )
var hello = edge ( function ( ) { /*
async (name) => {
return String.Format("Hello {0}", name);
}
*/ } )
hello ( 'friend' ) . then ( console . log )
// => "Hello friend"
接口
见
可以被称为普通函数(npm 惯用的)或.func方法(.Net 惯用的)。
创建的函数代理返回一个 Promise。
安装
$ npm install pr-edge
运行测试
从包根:
$ npm install
$ npm test
贡献者
jden@
执照
国际标准委员会。 (c) MMXV jden 。 见
【文件预览】:
pr-edge-master
----index.js(368B)
----package.json(559B)
----test()
--------test.js(363B)
----LICENSE.md(741B)
----.gitignore(23B)
----README.md(670B)