Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flex-combo

Package Overview
Dependencies
Maintainers
1
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flex-combo

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).

  • 0.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-13.33%
Maintainers
1
Weekly downloads
 
Created
Source

#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.

Keywords

FAQs

Package last updated on 26 Sep 2012

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc