0.0.3 • Published 11 years ago

lightning_strike v0.0.3

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

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>
0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago