1.0.3 • Published 3 years ago

ppk-cli v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

拆分策略

  • 核心模块: core
  • 命令模块:command
  • 模型模块:model
  • 工具模块:util

third party package

  • import-local
  • npmlog
  • node-semver
  • colors.js
  • root-check
  • minimist
  • dotenv

knowledge

  • require支持的文件后缀: .js,.json,.node,其它后缀的文件都会按照js文件进行解析
  • 使用try{}catch(e){}来捕获错误,自己对错误进行处理
  • process.geteuid: 0为root用户
  • npm registry api

feature

  • check package version
  • check lowest node version
  • check root account
  • check homedir whether exist
  • check debug mode from command line arguments
  • set default environment variable if .ppk-cli file not exists