{"name":"not-found","version":"0.2.1","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.1","_shasum":"d997e85d24ad4896c077828e9712ece4222762e4","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"d997e85d24ad4896c077828e9712ece4222762e4","tarball":"http://registry-npm.ywwl.com/not-found/download/not-found-0.2.1.tgz","integrity":"sha512-hWIllmjLIInTLTdSxH5j4dDHskutC3fc2a3Sp25m2r7mOio6ilSkJkcCOX4nLp7ZsqUsArKxnSeYSfRaVIvtvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/CM1KHDMhusml5e7y3+2MPnCu9/p+7mWuAXGkznZOUwIgB8JP1+lr6gxv1WJcP8HLsBCIOuIuW7/OH98MTkURfSU="}],"size":2985,"noattachment":false,"key":"/not-found/-/not-found-0.2.1.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":1406746508919,"_cnpm_publish_time":1406746508919,"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"}}