{"name":"not-found","version":"1.0.0","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":"^1.0.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":"9239b74d40ac47583a7b41425650a6c508f2ee07","_id":"not-found@1.0.0","_shasum":"3284ac423c68b51ba04ee1b19a0142ab099bd329","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"3284ac423c68b51ba04ee1b19a0142ab099bd329","tarball":"http://registry-npm.ywwl.com/not-found/download/not-found-1.0.0.tgz","integrity":"sha512-xUeDfIOTrOsuCAuk7TpQpcsrd3lq7ufnDYFwlKoIf2ydBLT3qJSnR03+5PvMvRRMpb1oTNZ48HBmvVK9a1LrZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgvlt8y6U+GmeoG1wnLZyIyGvOPCWONV5AOeRuX8R3NwIgPJ20wfBibETjGqKHIYD+AmE7FdG5qyBgdJMPAQtbB/M="}],"size":3054,"noattachment":false,"key":"/not-found/-/not-found-1.0.0.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":1410472522396,"_cnpm_publish_time":1410472522396,"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"}}