arguments.js:节点的 CLI 参数解析器

时间:2021-06-05 16:50:47
【文件属性】:
文件名称:arguments.js:节点的 CLI 参数解析器
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-05 16:50:47
JavaScript 参数.JS 节点的 CLI 参数解析器。 从 Python 模块移植 安装 $ npm install argumentsjs -S 用法 var Arguments = require ( "argumentsjs" ) ; f = new Arguments ( ) ; //Required arguments, first argument will be stored as "candy" f . required ( "candy" , { help : "Candy name" } ) ; //optional value, set a default, can be changed by adding: --num=30, or -n=30 f . option ( "num" , "25" , { help : "How many pieces?" , abbr :
【文件预览】:
arguments.js-master
----index.js(8KB)
----package.json(968B)
----test()
--------demo.js(731B)
--------arguments.test.js(4KB)
----LICENSE(1KB)
----.gitignore(165B)
----README.md(1KB)

网友评论