
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
quick-command-serve
Advanced tools
启动一个本地静态资源服务器,支持combo
请直接安装quickjs
$ npm install quickjs -g
如果你安装了taobao的代理镜像
$ cnpm install quickjs -g
Usage: quick serve [options]
Options:
-r, --root <path> set listen root
-p, --port <port> set listen port
serve:{
//监听路径
root:"//默认为当前命令行路径",
//监听端口
port:2000,
//执行wrap条件,用户可覆盖此默认配置
rules : function(pathname,ext){
return pathname.indexOf('static/page') != -1 && ext == 'js';
},
//wrap转换器,用户可覆盖或修改默认配置
transfer: {
js: function(content) {
return [
'define(function(require, exports, module) {\n',
content,
'\n});'
].join('');
},
tpl:function(content){
return this.js("return '"+content.replace(/\s/g,' ')+"'");
}
},
mine: { //mine类型
"css": "text/css",
"gif": "image/gif",
"html": "text/html",
"ico": "image/x-icon",
"jpeg": "image/jpeg",
"jpg": "image/jpeg",
"js": "text/javascript",
"json": "application/json",
"pdf": "application/pdf",
"png": "image/png",
"svg": "image/svg+xml",
"swf": "application/x-shockwave-flash",
"tiff": "image/tiff",
"txt": "text/plain",
"wav": "audio/x-wav",
"wma": "audio/x-ms-wma",
"wmv": "video/x-ms-wmv",
"xml": "text/xml"
}
}
可自定义任何选项,任何选项都是可选的
Please See source code
lib/default_conf.js
FAQs
quick serve command.
The npm package quick-command-serve receives a total of 1 weekly downloads. As such, quick-command-serve popularity was classified as not popular.
We found that quick-command-serve 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.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.