1.0.14 • Published 5 years ago

@flowx/npm-cli v1.0.14

Weekly downloads
1
License
MIT
Repository
-
Last release
5 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

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago