
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
tong-demo1-12
Advanced tools
1. svn下载工程 2. 切换到工程的根目录,安装依赖 ``` npm install ``` 3. 到工程根目录,启动工程 ``` node app.js dev //dev为启动的环境参数,供选择的有 (dev、test、prov) ```
npm install
node app.js dev //dev为启动的环境参数,供选择的有 (dev、test、prov)
/package.json 中script命令
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start-dev": "node node_modules/pm2/bin/pm2 start app.js --watch --no-daemon -- dev",
"start-test": "node node_modules/pm2/bin/pm2 start app.js -i 0",
"start-prov": "node node_modules/pm2/bin/pm2 start app.js -i 0 -- prov",
"restart": "node node_modules/pm2/bin/pm2 restart all",
"reload": "node node_modules/pm2/bin/pm2 reload all",
"stop": "node node_modules/pm2/bin/pm2 stop all && pm2 delete all"
},
命令的使用
npm run [命令的key]
1.开发过程可wich工程 启动命令
npm run start-dev
2.工程停止命令
npm run top
3.重启命令
npm run restart
可依照demo开发,直接使用demo文件中的api文件, 必须满足demo使用条件 然后将demo文件夹中api文件复制到./api文件夹使用
/demo
http://localhost:9000/test
FAQs
1. svn下载工程 2. 切换到工程的根目录,安装依赖 ``` npm install ``` 3. 到工程根目录,启动工程 ``` node app.js dev //dev为启动的环境参数,供选择的有 (dev、test、prov) ```
We found that tong-demo1-12 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.