0.9.4 • Published 11 years ago

staticize v0.9.4

Weekly downloads
2
License
MIT
Repository
github
Last release
11 years ago

Staticize

Staticize NPM

Staticize is a basic NPM module for routing to static files on an ExpressJS installation. For every route provided, Staticize will respond from a simple GET request to the route and respond with the given file location. If an error occurs, it will log directly to the console.

Install

$ npm install staticize --save

Usage

var staticize = require('staticize'),
	express = require('express'),
	app = express();

staticize(app, {
	'/foo': '../test/foo/bar.txt',
	'/foo/more': '../test/foo-extra/bar.txt'
});

app.listen(3000);
0.9.4

11 years ago

0.9.3

11 years ago

0.9.2

11 years ago

0.9.1

11 years ago