1.0.14 • Published 4 years ago

@flowx/npm-cli v1.0.14

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

NPM-CLI

命令行工具

Usage

$ npm i -g @flowx/npm-cli

Registry

$ npc registry [-d|--delete]

Connect with NPC

$ npm i -g @flowx/npm-cli
$ npc r
# type the registry url and select yes to confirm
# test:
$ npc view react

Choose Installer Mode

$ npc use

你可以选择使用npm或者npminstall模式来安装模块。默认选择npm

Plugins

任意存在 .npc 文件夹下以 .cmd.js 结尾的文件都将被认为是插件。插件写法如下:

const { Command } = require('commander');
const c = module.exports = new Command();
c.name('aa')
c.action(() => {
  console.log('bb')
})

它将自动被npc加载:

$ npc aa # bb

搜索目录:

  1. node_modules 下所有插件
  2. process.cwd() 同级 .npc 文件夹
1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago