node-wiz

0.2.0 • Public • Published

npm version

node-wiz

Node.js工具集,为开发者提供了强力的功能和工具,加速开发流程。

安装

yarn add node-wiz --dev

常量

  • argv: 命令行参数
  • currentWorkingDirectory: 当前工作目录

函数

  • spawnSync(command: string, params: string[]): 同步执行命令行
  • clearConsole(): 清空控制台
  • getGitStatus(): 获取git状态
  • tryGitAdd(path: string): 执行 git add
  • tryYarn(): 执行 yarn
  • tryNpm(): 执行 npm
  • handleAndExitOnError(func): 错误处理
  • handleAndExitOnErrorSync(async func): 同步错误处理
  • copyDirectoryContents(srouce: string, targe: string, transformCallback: Function(content: string)): 复制目录

Readme

Keywords

none

Package Sidebar

Install

npm i node-wiz

Weekly Downloads

4

Version

0.2.0

License

ISC

Unpacked Size

5.86 kB

Total Files

4

Last publish

Collaborators

  • vocowone