Skip to content

node-cli

json
{
  "bin": {
    "rename-cn-file": "bin/index.js"
  }
}
npm link

npm unpublish 只能在 72 小时内,否则要联系客服。在本地测试好再发布

js
var userArgs = process.argv.slice(2);

Writing Command Line Tools with Node

消息格式化