当前位置:网站首页>Write a simple nodejs script
Write a simple nodejs script
2022-07-03 12:27:00 【Chengfeng XS】
1. Create a script folder
2. initialization
npm init -y
3. stay package.json Add script command to file
"bin": {
"recat": "./index.js"
},
4. The same as creating in the directory index.js file , Content
#!/usr/bin/env node
const argvArr = process.argv;
console.log(argvArr);
5. Run the command
npm link
6. You can run the script on the command line
recat
边栏推荐
- Dart: self study system
- Adult adult adult
- SystemVerilog -- OOP -- copy of object
- 257. All paths of binary tree
- Official website of Unicode query
- 使用BLoC 构建 Flutter的页面实例
- Qt+vtk+occt reading iges/step model
- Wechat applet - basic content
- [download attached] password acquisition tool lazagne installation and use
- SLF4J 日志门面
猜你喜欢
Socket TCP for network communication (I)
PHP導出word方法(一mht)
【ManageEngine】IP地址扫描的作用
New features of ES6
Wechat applet - basic content
Talk about the state management mechanism in Flink framework
Wechat applet pages always report errors when sending values to the background. It turned out to be this pit!
Sword finger offer07 Rebuild binary tree
AOSP ~ NTP (Network Time Protocol)
PHP export word method (phpword)
随机推荐
网络通讯之Socket-Tcp(一)
DEJA_ Vu3d - cesium feature set 053 underground mode effect
(construction notes) grasp learning experience
Lambda表达式
Is it OK to open an account for online stock speculation? Is the fund safe?
Capturing and sorting out external Fiddler -- Conversation bar and filter [2]
Redis
手机号码变成空号导致亚马逊账号登陆两步验证失败的恢复网址及方法
111. Minimum depth of binary tree
Socket TCP for network communication (I)
云计算未来 — 云原生
Talk about the state management mechanism in Flink framework
Apprendre à concevoir des entités logicielles réutilisables à partir de la classe, de l'API et du cadre
Redis 笔记 01:入门篇
ES6新特性
(构造笔记)GRASP学习心得
Is it safe to open an account for online stock speculation? Who can answer
New features of ES6
temp
Introduction to concurrent programming (I)