morakot-i-my-cli-tool 1.0.0
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.
- package/index.js +9 -0
- package/package.json +19 -0
package/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
console.log("สวัสดีครับ! นี่คือเครื่องมือที่รันผ่าน npx ของคุณ 🎉");
|
|
4
|
+
|
|
5
|
+
// คุณสามารถเขียน Logic อื่นๆ หรือดึงข้อมูลจากคอมพิวเตอร์มาประมวลผลตรงนี้ได้เลย
|
|
6
|
+
const args = process.argv.slice(2);
|
|
7
|
+
if (args.length > 0) {
|
|
8
|
+
console.log(`คุณส่ง Parameter มาด้วย: ${args.join(', ')}`);
|
|
9
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "morakot-i-my-cli-tool",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A simple CLI tool",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"my-awesome-cli-tool": "index.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"cli",
|
|
14
|
+
"tool"
|
|
15
|
+
],
|
|
16
|
+
"author": "morakot.i",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"type": "module"
|
|
19
|
+
}
|