#!/usr/bin/env node
// index.js
#!/usr/bin/env node
console.log(‘hello world‘)
{
"name": "hello-test",
"version": "1.0.0",
"bin":{
"hello-cli":"index.js"
}
}
node开发命令行脚本
https://www.cnblogs.com/lcosima/p/11482428.html
原文:https://www.cnblogs.com/pengchenggang/p/15088483.html