1.0.1 • Published 11 years ago
not-found v1.0.1
not-found
Express/Connect middleware to serve a default not found/404 page.
Install
npm install not-found --save
Usage
Local file
var express = require('express');
var notFound = require('not-found');
var app = express();
app.use(notFound(__dirname + '/not-found.html'));
app.listen(3000, function () {
});
Remote file
var express = require('express');
var notFound = require('not-found');
var app = express();
app.use(notFound('http://domain.com/not-found.html'));
app.listen(3000, function () {
});
notFound(file)
file
- the path to the local file or a url for a remote file. This is required. It will skip the middleware if it is not provided or the file does not exists
Run Tests
npm install
npm test
1.0.1
11 years ago
1.0.0
11 years ago
0.3.2
11 years ago
0.3.1
11 years ago
0.3.1-rc8
11 years ago
0.3.1-rc7
11 years ago
0.3.1-rc6
11 years ago
0.3.1-rc5
11 years ago
0.3.1-rc4
11 years ago
0.3.1-rc3
11 years ago
0.3.1-rc2
11 years ago
0.3.1-rc1
11 years ago
0.3.0
11 years ago
0.2.3
11 years ago
0.2.1
11 years ago
0.2.0
11 years ago
0.1.0
11 years ago