kk-args

1.0.0 • Public • Published

kk-args

解析命令行参数的库,参考自 minimist

使用方式

npm install kk-args --save

const args = require('kk-args')() //假设启动方式为 node index.js --port 1100 --name "test"

console.log(args) // 输出:[port:'1100',name:'test',_:[]],其中_里面的为不规范的参数

Readme

Keywords

none

Package Sidebar

Install

npm i kk-args

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.49 kB

Total Files

4

Last publish

Collaborators

  • com-melot-kk-web