当前位置:网站首页>写一个简单的nodejs脚本
写一个简单的nodejs脚本
2022-07-03 11:50:00 【乘风xs】
1.创建一个脚本文件夹
2.初始化
npm init -y3.在package.json文件中添加脚本命令
"bin": {
"recat": "./index.js"
},4.同目录下创建index.js文件,编写内容
#!/usr/bin/env node
const argvArr = process.argv;
console.log(argvArr);5. 运行命令
npm link
6.可以在命令行运行脚本啦
recat边栏推荐
- ES6 standard
- 网络通讯之Socket-Tcp(一)
- Visual studio 2022 downloading and configuring opencv4.5.5
- temp
- The future of cloud computing cloud native
- DEJA_ Vu3d - 054 of cesium feature set - simulate the whole process of rocket launch
- Interview experience in summer camp of Central South University in 2022
- 抓包整理外篇fiddler———— 会话栏与过滤器[二]
- PHP export word method (phpword)
- Self made pop-up input box, input text, and click to complete the event.
猜你喜欢

1-2 project technology selection and structure

Solution to the second weekly test of ACM intensive training of Hunan Institute of technology in 2022

Unity3d learning notes 5 - create sub mesh

Shutter widget: centerslice attribute

Pki/ca and digital certificate

2.8 overview of ViewModel knowledge

Wechat applet - basic content

Prompt unread messages and quantity before opening chat group

If you can't learn, you have to learn. Jetpack compose writes an im app (I)

PHP export word method (phpword)
随机推荐
2.7 overview of livedata knowledge points
PHP export word method (one MHT)
Optimize interface performance
2.6 preliminary cognition of synergetic couroutines
145. Post order traversal of binary tree
Atomic atomic operation
Dart: About zone
Shutter: about inheritedwidget
DEJA_ Vu3d - cesium feature set 053 underground mode effect
【mysql专项】读锁和写锁
Adult adult adult
Use bloc to build a page instance of shutter
Integer string int mutual conversion
Colleagues wrote a responsibility chain model, with countless bugs
347. Top k high frequency elements
20. Valid brackets
(构造笔记)从类、API、框架三个层面学习如何设计可复用软件实体的具体技术
PHP導出word方法(一mht)
The future of cloud computing cloud native
Dart: self study system