yumparse:一个简单、轻量级的命令行参数解析器

时间:2021-07-03 22:03:49
【文件属性】:
文件名称:yumparse:一个简单、轻量级的命令行参数解析器
文件大小:54KB
文件格式:ZIP
更新时间:2021-07-03 22:03:49
JavaScript 云解析 一个简单、轻量级和灵活的命令行参数解析器。 基本用法 Yumparse 既简单又非常灵活。 这是一个简单的例子: var yum = require ( 'yumparse' ) ; var parser = new yum . Parser ( { // Enter command line options: shortFlag, type, and description are required parameters options : [ { shortFlag : '-f' , longFlag : '--foo' , type : String , description : 'The foo string' } ] } ) ; parser . parse ( ) ; // Parse the optio
【文件预览】:
yumparse-master
----Gruntfile.js(2KB)
----src()
--------helpers.js(3KB)
--------rules.js(3KB)
--------yumparse.js(14KB)
----doc()
--------index.html(1KB)
--------helpers.js.html(4KB)
--------styles()
--------module-rules.html(5KB)
--------module-yumparse.Parser-YumparseError.html(3KB)
--------module-helpers.html(5KB)
--------scripts()
--------module-yumparse.Parser.html(36KB)
--------yumparse.js.html(16KB)
--------module-yumparse.html(4KB)
--------rules.js.html(4KB)
----wercker.yml(670B)
----examples()
--------temperature.js(2KB)
--------basic.js(750B)
--------object.js(417B)
--------greeting.js(759B)
--------base64.js(1KB)
--------array.js(412B)
----LICENSE(1KB)
----test()
--------helpers.test.js(8KB)
--------yumparse.test.js(14KB)
--------rules.test.js(12KB)
----README.md(18KB)
----.gitignore(22B)
----package.json(911B)

网友评论