{"name":"not-found","version":"0.3.2","description":"Express/Connect middleware to serve a default not found/404 page","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"https://github.com/divshot/not-found.git"},"keywords":["divshot","superstatic","notfound","404","error"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/not-found/issues"},"homepage":"https://github.com/divshot/not-found","dependencies":{"deliver":"^0.6.0","file-exists":"^0.1.1","is-url":"^1.1.0"},"devDependencies":{"chai":"^1.9.1","connect":"^3.0.2","mkdirp":"^0.5.0","mocha":"^1.20.1","rmdir":"^1.0.4","supertest":"^0.13.0","mocksy":"^0.1.7"},"gitHead":"78d896307cd9abd71e134f18e355dce329bd1545","_id":"not-found@0.3.2","_shasum":"b75aba163669614689a3e75120c4f295337e845e","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"b75aba163669614689a3e75120c4f295337e845e","tarball":"http://registry-npm.ywwl.com/not-found/download/not-found-0.3.2.tgz","integrity":"sha512-fWqsIb8oFICPeABCxjzsHn58CTTcWjvrjOUbmvp+JNRtoVEalICeWrZ75ASPc8ElYMPCXKONDIi23n7PwwBEmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBbfFohHnAjGfs1CKs15UyXIa3IooJ9WBUGKqYT/11ghAiAqBssYDGkY5tSniE+Lxovywg77ImNHYC8hJGO3g1w+CA=="}],"size":3052,"noattachment":false,"key":"/not-found/-/not-found-0.3.2.tgz"},"readme":"# not-found\n\nExpress/Connect middleware to serve a default not found/404 page.\n\n## Install\n\n```\nnpm install not-found --save\n```\n\n## Usage\n\nLocal file\n\n```js\nvar express = require('express');\nvar notFound = require('not-found');\n\nvar app = express();\n\napp.use(notFound(__dirname + '/not-found.html'));\n\napp.listen(3000, function () {\n\n});\n```\n\nRemote file\n\n```js\nvar express = require('express');\nvar notFound = require('not-found');\n\nvar app = express();\n\napp.use(notFound('http://domain.com/not-found.html'));\n\napp.listen(3000, function () {\n\n});\n```\n\n### notFound(file)\n\n* `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\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```\n\n","publish_time":1410470868325,"_cnpm_publish_time":1410470868325,"dist-tags":{"0.3.1-rc1":"0.3.1-rc1","0.3.1-rc2":"0.3.1-rc2","0.3.1-rc3":"0.3.1-rc3","0.3.1-rc4":"0.3.1-rc4","0.3.1-rc5":"0.3.1-rc5","0.3.1-rc6":"0.3.1-rc6","0.3.1-rc7":"0.3.1-rc7","0.3.1-rc8":"0.3.1-rc8","latest":"1.0.1"}}