lightning_strike

0.0.3 • Public • Published

lightning_strike

Build Status

Journeyman middleware for serving static content

Blowing up your server with tons of static content

Example:

var Journeyman      = require('journeyman');
var LightningStrike = require('lightning_strike');
var path            = require('path');
 
var server = new Journeyman(80);
var lightning = new LightningStrike(path.join(__dirname, 'test_dir'));
 
server.use(lightning.middleware());
 
server.listen();

Serves contents of 'test_dir' directory under the virtual directory 'static'.

  <script type='text/javascript' src='/static/test.js'></script> 

Readme

Keywords

none

Package Sidebar

Install

npm i lightning_strike

Weekly Downloads

0

Version

0.0.3

License

BSD

Last publish

Collaborators

  • bthesorceror