{"name":"not-found","version":"0.2.3","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.4.3","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"},"_id":"not-found@0.2.3","_shasum":"36221d4d00b0988aa921d618a632d91dfc37838f","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"36221d4d00b0988aa921d618a632d91dfc37838f","tarball":"http://registry-npm.ywwl.com/not-found/download/not-found-0.2.3.tgz","integrity":"sha512-X5mTPSm6dcvDNkxykwz0b1vwKh6c0Vuu6bB7eCSSfNaVtLJ4i5n38mo+AEuF3xb70W3NTcO9zJSbWciVkKbipQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFXuZzjDnI++/WfqgW+PHTRDGxD04JQ6hIIPiJWewTG4AiEA18dxWQMG26XF468jeJXfEmDEs3iaQDznxQvxK0ye/RE="}],"size":3032,"noattachment":false,"key":"/not-found/-/not-found-0.2.3.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":1406918627533,"_cnpm_publish_time":1406918627533,"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"}}