当前位置:网站首页>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 -y3. 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边栏推荐
- Redis 笔记 01:入门篇
- Unicode查询的官方网站
- (构造笔记)从类、API、框架三个层面学习如何设计可复用软件实体的具体技术
- JVM memory model
- Symlink(): solution to protocol error in PHP artisan storage:link on win10
- 剑指Offer09. 用两个栈实现队列
- 云计算未来 — 云原生
- 225. Implement stack with queue
- 023(【模板】最小生成树)(最小生成树)
- Is it OK to open an account for online stock speculation? Is the fund safe?
猜你喜欢

雲計算未來 — 雲原生

Php Export word method (One MHT)

Implement verification code verification

Why can't my MySQL container start

Itext7 uses iexternalsignature container for signature and signature verification

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

Socket TCP for network communication (I)

(construction notes) ADT and OOP

2.8 overview of ViewModel knowledge

Talk about the state management mechanism in Flink framework
随机推荐
Computer version wechat applet full screen display method, mobile phone horizontal screen method.
【ManageEngine】IP地址扫描的作用
DEJA_ Vu3d - cesium feature set 053 underground mode effect
MySQL time zone solution
2.9 overview of databinding knowledge points
239. Sliding window maximum
Flutter Widget : KeyedSubtree
Itext7 uses iexternalsignature container for signature and signature verification
Dart: About zone
Official website of Unicode query
Use bloc to build a page instance of shutter
01_ Using the concurrent tool class library, is thread safety safe
repo Manifest Format
New features of ES6
Adult adult adult
232. Implement queue with stack
2020-09_ Shell Programming Notes
(構造筆記)從類、API、框架三個層面學習如何設計可複用軟件實體的具體技術
Lambda表达式
Unicode查询的官方网站