随笔分类 -  Nodejs

摘要:打包工具, 可以将Nodejs应用打包成windows 程序, linux程序 (pkg) 执行shell 脚本的工具,shelljs, 比如操作文件目录,可以使用fs库,但是效率没有shell脚本来的快速。 Shelljs的封装,可以在windows命令行中运行linux命令的shx库 命令行参数 阅读全文
posted @ 2020-12-09 16:03 JasonWangTing 阅读(349) 评论(0) 推荐(0)
摘要:使用Chrome打开网址 var open = require("open"); open("http://www.google.com", "chrome"); 调用Start打开 open模块的实现原理非常简单,即start命令,我们可以直接在命令行中调试: C:\Users\c2u> star 阅读全文
posted @ 2020-12-07 19:13 JasonWangTing 阅读(1020) 评论(0) 推荐(0)