【文件属性】:
文件名称:node-arg-parser:节点cli参数解析器
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-13 13:03:45
JavaScript
节点参数解析器
节点cli参数解析器
安装
npm install arg-parser
例子
test.js
var Args = require ( 'arg-parser' ) ,
args = new Args ( 'ArgParserTester' , '1.0' , 'NodeJS arg-parser module tester' ,
'In addition to these parameters - more info here...' ) ;
args . add ( { name : 'input' , desc : 'input file' , switches : [ '-i' , '--input-file' ] , value : 'file' } ) ;
args . add ( { name : 'output' , desc : 'output
【文件预览】:
node-arg-parser-master
----arg-parser.js(7KB)
----test.js(660B)
----LICENSE(34KB)
----README.md(1KB)
----.gitignore(56B)
----package.json(522B)