{"_id":"500-pagelet","_rev":"12-4b11ac4c51a711515fe0c691781443f5","name":"500-pagelet","description":"Default 500 Pagelet used if anything fails in BigPipe","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"500-pagelet","version":"1.0.0","description":"Default 500 Pagelet used if anything fails in BigPipe","main":"index.js","scripts":{"test":"illuminati"},"repository":{"type":"git","url":"https://github.com/bigpipe/500-pagelet.git"},"dependencies":{"pagelet":"0.8.x","diagnostics-pagelet":"1.0.x"},"devDependencies":{"illuminati":"0.0.x","assume":"0.0.x","coveralls":"2.11.x","istanbul":"0.3.x","mocha":"2.0.x","mocha-lcov-reporter":"0.0.x"},"keywords":["BigPipe","Pagelet","500","default","error"],"author":{"name":"Martijn Swaagman"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/500-pagelet/issues"},"homepage":"https://github.com/bigpipe/500-pagelet","gitHead":"fa6ce1aa954298dd259ae0bc2df25843f048bb19","_id":"500-pagelet@1.0.0","_shasum":"7278e7b221ba9a1b8cf163861e72e09787232f21","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"swaagie","email":"info@martijnswaagman.nl"},"maintainers":[{"name":"swaagie","email":"info@martijnswaagman.nl"}],"dist":{"shasum":"7278e7b221ba9a1b8cf163861e72e09787232f21","tarball":"https://registry.npmjs.org/500-pagelet/-/500-pagelet-1.0.0.tgz","integrity":"sha512-buh6Svr9B6Sa7dMQufwyoTpkTPsHmX8kpRYbUKSZabX3CISg4sxSPayq4kbWv0TJ28ZzVbl+aObRT5r5pzDRow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDc8WjmGDYi1SHrAYyl9tHbCOu0mX5QYcupYOnbAitAaQIgDARkDyTzGh+si0zlWoJNhxKSXntpM6NbmairaJtrJVU="}]}},"1.0.1":{"name":"500-pagelet","version":"1.0.1","description":"Default 500 Pagelet used if anything fails in BigPipe","main":"index.js","scripts":{"test":"mocha $(find test -name '*.test.js')","watch":"mocha --watch $(find test -name '*.test.js')","coverage":"istanbul cover ./node_modules/.bin/_mocha -- $(find test -name '*.test.js')","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- $(find test -name '*.test.js')"},"repository":{"type":"git","url":"https://github.com/bigpipe/500-pagelet.git"},"dependencies":{"pagelet":"1.0.x","diagnostics-pagelet":"1.0.x"},"devDependencies":{"assume":"0.0.x","istanbul":"0.3.x","mocha":"2.1.x","pre-commit":"0.0.x","routable":"0.0.x","temper":"0.2.x"},"keywords":["BigPipe","Pagelet","500","default","error"],"author":{"name":"Martijn Swaagman"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/500-pagelet/issues"},"homepage":"https://github.com/bigpipe/500-pagelet","gitHead":"69af6810e1f10d8ffd6e3bc50e5c3bcdd3ed9799","_id":"500-pagelet@1.0.1","_shasum":"572be2dd2b7062d03a7366f671847a33f091590a","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"swaagie","email":"info@martijnswaagman.nl"},"maintainers":[{"name":"swaagie","email":"info@martijnswaagman.nl"}],"dist":{"shasum":"572be2dd2b7062d03a7366f671847a33f091590a","tarball":"https://registry.npmjs.org/500-pagelet/-/500-pagelet-1.0.1.tgz","integrity":"sha512-LR7/SoBc3CphJmbafIus+WJwllKSzCSJAZfY13aeFY4exGGkGjwvpjfkP0+Lnjns3Bn49Ckg+UITf1UAwL+WOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEmn07/UaZhGmgGSCFPvbHgmD/1lOAEw5R4d/qvJW3yQIhAOPp10MQmVbKS++qnmZOCIIek1JYLmyb+te/BStvdawG"}]}},"1.0.2":{"name":"500-pagelet","version":"1.0.2","description":"Default 500 Pagelet used if anything fails in BigPipe","main":"index.js","scripts":{"test":"mocha $(find test -name '*.test.js')","watch":"mocha --watch $(find test -name '*.test.js')","coverage":"istanbul cover ./node_modules/.bin/_mocha -- $(find test -name '*.test.js')","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- $(find test -name '*.test.js')"},"repository":{"type":"git","url":"https://github.com/bigpipe/500-pagelet.git"},"dependencies":{"pagelet":"1.0.0-alpha","diagnostics-pagelet":"1.0.x"},"devDependencies":{"assume":"0.0.x","istanbul":"0.3.x","mocha":"2.1.x","pre-commit":"0.0.x","routable":"0.0.x","temper":"0.2.x"},"keywords":["BigPipe","Pagelet","500","default","error"],"author":{"name":"Martijn Swaagman"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/500-pagelet/issues"},"homepage":"https://github.com/bigpipe/500-pagelet","gitHead":"07f97efe7c913a941d202f26d4aacdceceeca9e3","_id":"500-pagelet@1.0.2","_shasum":"8f3c9b7ac52df994b9e84b06fe6fc08b8742b887","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"swaagie","email":"info@martijnswaagman.nl"},"maintainers":[{"name":"swaagie","email":"info@martijnswaagman.nl"}],"dist":{"shasum":"8f3c9b7ac52df994b9e84b06fe6fc08b8742b887","tarball":"https://registry.npmjs.org/500-pagelet/-/500-pagelet-1.0.2.tgz","integrity":"sha512-ZQZiWKDlIvqTWZCIGH9cmC86DkA1Y57CCwnKLqPjW5cqHbhzLOv531TNHSzsf6V5/sqpInEluqYj+ol++SQrgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvL+LxMIimmLuh3k3pWF/rPCQgvkSpkkc5Ct3VSzGixwIgc77iKjOI/fATwiQksPwcQGdDg60u/kXEyHhUGAkLVWo="}]}},"1.0.3":{"name":"500-pagelet","version":"1.0.3","description":"Default 500 Pagelet used if anything fails in BigPipe","main":"index.js","scripts":{"test":"mocha $(find test -name '*.test.js')","watch":"mocha --watch $(find test -name '*.test.js')","coverage":"istanbul cover ./node_modules/.bin/_mocha -- $(find test -name '*.test.js')","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- $(find test -name '*.test.js')"},"repository":{"type":"git","url":"https://github.com/bigpipe/500-pagelet.git"},"dependencies":{"pagelet":"1.0.0-alpha-3","diagnostics-pagelet":"1.0.x"},"devDependencies":{"assume":"1.2.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x","routable":"0.0.x","temper":"0.3.x"},"keywords":["BigPipe","Pagelet","500","default","error"],"author":{"name":"Martijn Swaagman"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/500-pagelet/issues"},"homepage":"https://github.com/bigpipe/500-pagelet","gitHead":"5399525d7ae2328c8c585d8250de625b93b2e88c","_id":"500-pagelet@1.0.3","_shasum":"b1e8e7230312282035dc06176c0b33e4b8ec263d","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"swaagie","email":"info@martijnswaagman.nl"},{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"dist":{"shasum":"b1e8e7230312282035dc06176c0b33e4b8ec263d","tarball":"https://registry.npmjs.org/500-pagelet/-/500-pagelet-1.0.3.tgz","integrity":"sha512-6Mkgv+HWnb9zMx8A2pfBplLF+rbtHzQXZPs1kguTn3BF8tEDZfLxLaXTX0jGqBkpjk56DidubLJ/SEEjvn1RQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChXIbE2AvDPjgHFN3mcPDiy1v5dyFfOv2pYf5wtPy36wIgNBU3Ce69DGk1/2rjUZtH3kLl1uYVJC838L45crT9lOQ="}]}},"1.0.4":{"name":"500-pagelet","version":"1.0.4","description":"Default 500 Pagelet used if anything fails in BigPipe","main":"index.js","scripts":{"test":"mocha $(find test -name '*.test.js')","watch":"mocha --watch $(find test -name '*.test.js')","coverage":"istanbul cover ./node_modules/.bin/_mocha -- $(find test -name '*.test.js')","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- $(find test -name '*.test.js')"},"repository":{"type":"git","url":"https://github.com/bigpipe/500-pagelet.git"},"dependencies":{"pagelet":"1.0.x","diagnostics-pagelet":"1.0.x"},"devDependencies":{"assume":"1.2.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x","routable":"0.0.x","temper":"0.3.x"},"keywords":["BigPipe","Pagelet","500","default","error"],"author":{"name":"Martijn Swaagman"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/500-pagelet/issues"},"homepage":"https://github.com/bigpipe/500-pagelet","gitHead":"9c16ab09463bab15e572e9db70af1406ee4cbd15","_id":"500-pagelet@1.0.4","_shasum":"383311bf02454294eacda38a3844c860560de211","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"swaagie","email":"info@martijnswaagman.nl"},"maintainers":[{"name":"swaagie","email":"info@martijnswaagman.nl"},{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"dist":{"shasum":"383311bf02454294eacda38a3844c860560de211","tarball":"https://registry.npmjs.org/500-pagelet/-/500-pagelet-1.0.4.tgz","integrity":"sha512-UaRwS7LCVLU6jKai1FUn1ENYYHOKva+VE8cevxq+diaML+rqaTEuzIKNAMM2Cr+vwbno6zll8aQBbn5hHAhxRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0CD9Pw6Hx9Sn0NzPsl7718uq5ozFbxUGCS0w8wkUdAQIgdOLl5B/EZNI3cdChnqVSLJGIGLBsFb353qAR2Mi+1tg="}]}},"1.0.5":{"name":"500-pagelet","version":"1.0.5","description":"Default 500 Pagelet used if anything fails in BigPipe","main":"index.js","scripts":{"test":"mocha $(find test -name '*.test.js')","watch":"mocha --watch $(find test -name '*.test.js')","coverage":"istanbul cover ./node_modules/.bin/_mocha -- $(find test -name '*.test.js')","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- $(find test -name '*.test.js')"},"repository":{"type":"git","url":"https://github.com/bigpipe/500-pagelet.git"},"dependencies":{"pagelet":"0.9.x","diagnostics-pagelet":"1.0.x"},"devDependencies":{"assume":"1.2.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x","routable":"0.0.x","temper":"0.3.x"},"keywords":["BigPipe","Pagelet","500","default","error"],"author":{"name":"Martijn Swaagman"},"license":"MIT","bugs":{"url":"https://github.com/bigpipe/500-pagelet/issues"},"homepage":"https://github.com/bigpipe/500-pagelet","gitHead":"baf91823de93b3615649a3a73b4499497121a91f","_id":"500-pagelet@1.0.5","_shasum":"9e038f302d41e450b2d151ac637d3319156683b2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"swaagie","email":"info@martijnswaagman.nl"},"maintainers":[{"name":"swaagie","email":"info@martijnswaagman.nl"},{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"dist":{"shasum":"9e038f302d41e450b2d151ac637d3319156683b2","tarball":"https://registry.npmjs.org/500-pagelet/-/500-pagelet-1.0.5.tgz","integrity":"sha512-ES2rzTXLZkmI06kxNr3pkXnyfpbtlfxlG8gzyI3NkuG/KQfDqNHvdYN4gIwDS4jKgNshDN6a3vORap0B2g6mFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBgy11bIJVxCm3eKDaB6yQeDg9Tv+YQh8QLg+mABjt6DAiEAkW29TrE5xUr6ZtTCQDbEes5AkNPeBYpJqGHkwP8Ieps="}]}}},"readme":"# 500 Pagelet\n\n[![Version npm][version]](http://browsenpm.org/package/500-pagelet)[![Build Status][build]](https://travis-ci.org/bigpipe/500-pagelet)[![Dependencies][david]](https://david-dm.org/bigpipe/500-pagelet)[![Coverage Status][cover]](https://coveralls.io/r/bigpipe/500-pagelet?branch=master)\n\n[version]: http://img.shields.io/npm/v/500-pagelet.svg?style=flat-square\n[build]: http://img.shields.io/travis/bigpipe/500-pagelet/master.svg?style=flat-square\n[david]: https://img.shields.io/david/bigpipe/500-pagelet.svg?style=flat-square\n[cover]: http://img.shields.io/coveralls/bigpipe/500-pagelet/master.svg?style=flat-square\n\nThis Pagelet is responsible for displaying server errors. By\ndefault the 500 Pagelet is provided with [BigPipe]. However, if you\nneed a custom 500 you can extend this Pagelet. For example to change\nthe default view.\n\n## Installation\n\nThe 500 Pagelet is distributed through the node package manager (npm).\n\n```\nnpm install --save 500-pagelet\n```\n\n## Support\n\nGot stuck? Or can't wrap your head around a concept or just want some feedback,\nwe got a dedicated IRC channel for that on Freenode:\n\n- **IRC Server**: `irc.freenode.net`\n- **IRC Room**: `#bigpipe`\n\nStill stuck? Create an issue. Every question you have is a bug in our\ndocumentation and that should be corrected. So please, don't hesitate to create\nissues, many of them.\n\n### Example\n\nIn this example the 500 Pagelet is extended with a custom view.\n[BigPipe] will automatically discover this extended version\nif it is provided to [BigPipe] alongside the other pagelets.\nNote that the enviroment variable can be overruled to manage the\ndata that is displayed.\n\n```js\n'use strict';\n\n//\n// Extend the 500 Pagelet with a custom view.\n//\nvar Fivehundred = require('500-pagelet').extend({\n  view: '/path/to/my/custom-view.html',  // your custom layout\n  env: 'development'                     // defaults to process.env.NODE_ENV\n});\n\n//\n// Initialise BigPipe server.\n//\nvar pipe = require('bigpipe').createServer(2000, {\n  pagelets: [ Fivehundred, ... ]\n});\n```\n\n### API\n\nThe following methods are available on the 500 Pagelet instance. Most are\nonly used internally. There is rarely a reason to call these methods.\n\n#### new Fivehundred()\n\n**public**, _returns Pagelet_.\n\nThe 500 constructor expects several options to be provided, these\ninclude: `req`, `res` and `pipe`. The last option is a reference\nto the [BigPipe] instance, mainly to ensure the same [Temper]\ninstance is re-used. All code examples assume your file is setup as:\n\n```js\n'use strict';\n\nvar Fivehundred = require('500-pagelet');\n  , fivehundred = new Fivehundred({ options }, new Error('failure'));\n```\n\n#### Bootstrap.get()\n\n**private**, _returns Pagelet_.\n\nExtracts the data from the provided Error to render the template.\nIf the environment is _production_ the `Error.stack` will not be\nprovided to the template.\n\n```js\nfivehundred.get(function render(error, data) {\n  // provide data to pagelet.render\n});\n```\n\n## Debugging\n\nThe library makes use the `diagnostics` module from Pagelet.\nTo display the 500 Pagelet specific debug messages, supply the\nfollowing before running the program or\n\n```bash\nDEBUG=pagelet:500 node ...\n```\n\n## Testing\n\nTests are automatically run on [Travis CI] to ensure that everything is\nfunctioning as intended. For local development we automatically install a\n[pre-commit] hook that runs the `npm test` command every time you commit changes.\nThis ensures that we don't push any broken code in to this project.\n\nTo run tests locally, make sure the development dependencies are installed.\n\n```bash\nnpm test\nnpm run coverage\n```\n\n## License\n\n500-pagelet is released under MIT.\n\n[BigPipe]: http://bigpipe.io/\n[Travis CI]: http://travisci.org\n[Temper]: http://github.com/bigpipe/temper\n[pre-commit]: http://github.com/observing/pre-commit","maintainers":[{"name":"swaagie","email":"info@martijnswaagman.nl"},{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"time":{"modified":"2022-06-12T14:07:54.836Z","created":"2014-12-24T10:43:42.523Z","1.0.0":"2014-12-24T10:43:42.523Z","1.0.1":"2015-01-12T15:05:19.771Z","1.0.2":"2015-02-24T23:41:16.306Z","1.0.3":"2015-03-30T09:16:18.513Z","1.0.4":"2015-04-02T10:54:32.470Z","1.0.5":"2015-04-03T10:11:56.732Z"},"homepage":"https://github.com/bigpipe/500-pagelet","keywords":["BigPipe","Pagelet","500","default","error"],"repository":{"type":"git","url":"https://github.com/bigpipe/500-pagelet.git"},"author":{"name":"Martijn Swaagman"},"bugs":{"url":"https://github.com/bigpipe/500-pagelet/issues"},"license":"MIT","readmeFilename":"README.md"}