the-cli-demo 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/index.js +5 -0
  2. package/package.json +15 -0
package/bin/index.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ // 上面一行是在 `用户环境变量中查找 node 可执行文件`,然后用node执行当前脚本
3
+ // This is a simple CLI demo script
4
+ console.log("Hello, welcome to the CLI demo!");
5
+ console.log("This is a simple command-line interface application.!!!!");
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "the-cli-demo",
3
+ "version": "1.0.1",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "the-demo": "./bin/index.js"
8
+ },
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "keywords": [],
13
+ "author": "",
14
+ "license": "ISC"
15
+ }