commander-js 0.0.1-security•Public• Published6 years ago Security holding package This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if...
var { program } = require('commander'); var Message = require('../config/messages') var createdFile = require('../utils/createFile') program.option('-v, --version [version]', '指定版本号', '0.0.3') // npx <commander name> use <moduleName> -v 0.0.1 program.parse(process.argv...
ps:以下代码都是mjs,所以需要在package.json中添加一行"type": "module" // 1 配置可执行的命令 commander import{ Command }from'commander'; importchalkfrom'chalk'; importconfigfrom'../package.json'assert {type:'json'}; constprogram =newCommand; program .command('create <app-name>')// 创建命令...
一个node脚本,使用babel-node转换es6,使用了commander来从命令行接收参数。 我可以在build(es6转换)后的代码使用脚本,但是从npm scripts脚本中无法执行node代码。 我的npm scripts "scripts": { "test": "babel-node index.js ", "build": "babel index.js -d dist", ... }, 使用yarn test -h ...
chalk: ^4.1.2 commander: ^8.3.0 ini: ^2.0.0 node-fetch: 2.6.6open: ^8.4.2 maintainers: - pana <pana.wang@outlook.com> - langshu <shiren1118@126.com> dist-tags: latest: 1.2.6 published 6 months ago by langshu <shiren1118@126.com>...
commander 1. 2. package.json文件的优点是,如果你的项目目录中有package.json文件,只需键入npm install,那么npm将查看文件中列出的依赖关系并下载它们。你甚至可以与其他开发人员共享它或将其推送到你的 GitHub 仓库。因此,当他们键入npm install时,他们将获得你拥有的所有相同的包。
主要使用了 commander superagent xml2js chalk 主要功能: 支持iciba、有道翻译 快速切换翻译源 使用方法 $ npm install -g translator-cli $ translator Usage: translator [options] [command] Options: -V,--version output the version number-h,--help output usage information ...
```markdown # npm-commander. Latest version: 1.1.1, last published: 9 months ago. Start using npm-commander in your project by running `npm i npm-commander`. There are no other projects in the npm registry using npm-commander.
$ npm list -g ├─┬ cnpm@4.3.2 │├── auto-correct@1.0.0 │├── bagpipe@0.3.5 │├── colors@1.1.2 │├─┬ commander@2.9.0 ││└── graceful-readlink@1.0.1 │├─┬ cross-spawn@0.2.9 ││└── lru-cache@2.7.3 …… 如果要查看某个模块的版本号,可以使用命令如下:...
{ "connect": "2.8.4", "commander": "1.2.0", "range-parser": "0.0.4", "mkdirp": "0.3.5", "cookie": "0.1.0", "buffer-crc32": "0.2.1", "fresh": "0.1.0", "methods": "0.0.1", "send": "0.1.3", "cookie-signature": "1.0.1", "debug": "*" }, "devDependencies":...