xgqfrms-GitHub / Node-CLI-Tools

一个 Node.js CLI 工具,查看指定 git 仓库的 commit history ; 能对 commit history 进行搜索; 能查看指定时间范围的 commit history.
https://node-cli-tools.xgqfrms.xyz
MIT License
6 stars 2 forks source link

Node.js CLI & Linux shell `#!` interpreter #33

Open xgqfrms opened 1 year ago

xgqfrms commented 1 year ago

Node.js CLI & Linux shell #! interpreter


#!/usr/bin/env node

# ✅ 推荐写法, 动态读取 env 配置的解释器路径,切换系统环境不会报错,可移植性高 🚀 
#!/usr/bin/node

# 👎 不推荐写法,写死了解释器路径,切换系统环境有可能会报错,可移植性低 

image

作者:xgqfrms 链接:https://www.cnblogs.com/xgqfrms/p/17273683.html 来源:https://www.cnblogs.com 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 ©xgqfrms 2012-2023 www.cnblogs.com 发布文章使用:只允许注册用户才可以访问! 原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!