Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
flex-combo
Advanced tools
The Flex-combo is combo tool designed for web front-end developer. It support various kinds of combo format by modify configuration(eg. yahoo combo).
#Flex-combo The Flex-combo is a javascript and css file combo server. The tool is designed for web front-end developer. It support various kinds of combo format by modify configuration(eg. yahoo combo). Default, it's a taobao format combo.
#Install
Install flex-combo by npm install flex-combo
or fork on github flexcomb
#Have a try After install.
cd node_modules/flex-combo
node ./test.js
Open you browser visit
http://127.0.0.1:1337/test/js/??js1.js,js2.js,js3.js
#Useage Import module and create module instance and pass a configuration like this:
var http = require('http');
var flexCombo = require('./flex-combo.js');
var comboInst = flexCombo(__dirname, {'/test': 'test'});
http.createServer(function (req, res) {
comboInst(req, res, function(){
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
})
}).listen(1337, '127.0.0.1');
console.log('Flex Combo Server running at http://127.0.0.1:1337/');
It meas if a http request start with http://xxxx.com/test
flex-combo will find file in `./test' directory.
#Command line
If install flex-combo as global mode npm install -g flex-combo
. There is a command line flex-combo [URL prefix]
to simplely start a combo server base current directory.
FAQs
The Assets Handling Middleware for web front-end developer, which support combo format(eg. yahoo combo).
The npm package flex-combo receives a total of 10 weekly downloads. As such, flex-combo popularity was classified as not popular.
We found that flex-combo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.