impulse-bin:node.js bin 脚本模块加载器

时间:2021-06-16 21:05:29
【文件属性】:
文件名称:impulse-bin:node.js bin 脚本模块加载器
文件大小:13KB
文件格式:ZIP
更新时间:2021-06-16 21:05:29
JavaScript 脉冲仓 node.js CLI 模块运行器 用于和适配器 带有stdout/stderr/verbose 的基本控制台记录器集 目的 无需运行可执行文件即可更容易测试的 CLI 脚本。 减少样板。 例子 bin/myproj 可执行文件被简化为精简加载调用。 var bin = require ( 'impulse-bin' ) . create ( ) ; bin . run ( require ( 'commander' ) , require ( './lib/cli/myproj' ) ) ; // Or if your CLI module's run() function is a generator: bin . runGenerator ( require ( 'commander' ) , require ( './lib/cli/myproj' ) ) ; li

网友评论