https://github.com/weibozzz/command-params
获取命令行参数
https://github.com/weibozzz/command-params
Last synced: about 2 months ago
JSON representation
获取命令行参数
- Host: GitHub
- URL: https://github.com/weibozzz/command-params
- Owner: Weibozzz
- Created: 2023-03-09T04:28:53.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-09T05:17:16.000Z (about 2 years ago)
- Last Synced: 2025-03-13T14:39:06.027Z (2 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# command-params
获取命令行参数
## 快速使用
```shell
npm i command-params -D
```
```js
const getCommandParams = require('command-params')// node test.js --a a
console.log(getCommandParams()) // { a: 'a' }
```