node-noop:什么都不做的功能

时间:2021-05-19 21:56:59
【文件属性】:
文件名称:node-noop:什么都不做的功能
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-19 21:56:59
Makefile NOOP 做的功能。 安装 $ npm install @kgryte/noop 用法 var noop = require ( '@kgryte/noop' ) ; noop() 做的Function 。 noop ( ) ; // ...does nothing. 例子 var noop = require ( '@kgryte/noop' ) ; function foo ( next ) { // Do something... // Then... next ( ) ; } foo ( noop ) ; 要从*应用程序目录运行示例代码, $ node ./examples/index.js 测验 单元 单元测试使用带有断言的测试框架。 要运行测试,请在*应用程序目录中执行以下命令: $ make test 所有新功能开发均应具有相应的单元测试,以验证
【文件预览】:
node-noop-master
----.jshintrc(1KB)
----.gitattributes(12B)
----.jshintignore(118B)
----lib()
--------index.js(115B)
----.npmignore(498B)
----examples()
--------index.js(132B)
----TODO.md(10B)
----.travis.yml(156B)
----LICENSE(1KB)
----test()
--------test.js(593B)
----README.md(2KB)
----Makefile(2KB)
----.editorconfig(169B)
----.gitignore(1KB)
----package.json(1KB)

网友评论