Journeyman middleware for serving static content
CoffeeScript JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

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>