【文件属性】:
文件名称:mediocre.js:javascript 中介
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-13 15:54:26
JavaScript
不推荐使用
var mesh = require ( "mesh" ) ;
var dispatch = mesh . sequence (
mesh . accept ( "login" , mesh . wrapCallback ( function ( operation , next ) {
} )
) ;
// pre-hook
dispatch . unshift ( mesh . accept ( "login" , mesh . wrapCallback ( function ( operation , next ) {
} ) ;
// post-hook
dispatch . push ( mesh . accept ( "login" , mesh . wrapCallback ( function ( operation , next ) {
}
【文件预览】:
mediocre.js-master
----.travis.yml(94B)
----package.json(648B)
----test()
--------basic-test.js(972B)
--------obj-test.js(1KB)
--------intercept-test.js(893B)
--------pre-post-test.js(2KB)
--------array-test.js(0B)
----.gitignore(23B)
----lib()
--------index.js(4KB)
--------factory()
--------message.js(826B)
----README.md(2KB)