{"_id":"flash","_rev":"42-f620831866ee8b381bac0fa13b9dbedc","name":"flash","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.0":{"name":"flash","version":"0.0.0","keywords":[],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"flash@0.0.0","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"homepage":"https://github.com/expressjs/flash","bugs":{"url":"https://github.com/expressjs/flash/issues"},"dist":{"shasum":"18cd9085423ac452d70bbd89d503213a4113278a","tarball":"https://registry.npmjs.org/flash/-/flash-0.0.0.tgz","integrity":"sha512-HuUe69NhAIQC/jWYJKsz/31RfxVwNHhFoWJuI3nBbFiJe5gi0UanhdGI3eXiGBdzKU/mcpNv9Z7GtwG6UVv7sw==","signatures":[{"sig":"MEUCIDHiAfcV2bBHPW2eOSwSvmcKneyttulqZPxdN96/8TDRAiEA0XP3fh8IVKtwyqEGrhFvN9F4pniUWylOZZLxyw4+CYg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"18cd9085423ac452d70bbd89d503213a4113278a","gitHead":"d6e785e848179ee107845140e2606c6254c7312d","scripts":{"test":"mocha --reporter spec","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"https://github.com/expressjs/flash","type":"git"},"_npmVersion":"1.4.21","description":"[![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][dow","dependencies":{},"devDependencies":{"mocha":"1","istanbul":"0"},"directories":{}},"1.0.0":{"name":"flash","version":"1.0.0","keywords":["flash","messages","express"],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"flash@1.0.0","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"homepage":"https://github.com/expressjs/flash","bugs":{"url":"https://github.com/expressjs/flash/issues"},"dist":{"shasum":"f5630815727234e72b6a058b34a608a29d17468d","tarball":"https://registry.npmjs.org/flash/-/flash-1.0.0.tgz","integrity":"sha512-KzJ26wxtVMHtTNqIjdIvVCSykhqeMNe/Lh/NoOVGBtki45RQktgJxyV1Of2iuYGaLXgCALyz1VPeufN5n2/dIg==","signatures":[{"sig":"MEUCIQCGMoa4ZSoOgaivKdGzML99nBZ58Rk4aNfaKjWbdwjAvgIgIZuh2A+5/4+oRn7r1vDFLPIuBM3qmN5YulawVdBTpgQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js","LICENSE"],"_shasum":"f5630815727234e72b6a058b34a608a29d17468d","gitHead":"3f7bc94cf69020353aa674fcdde465ffd22b1c87","scripts":{"test":"mocha --reporter spec","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"https://github.com/expressjs/flash","type":"git"},"_npmVersion":"1.4.26","description":"Simple flash messages for Express","dependencies":{},"devDependencies":{"mocha":"1","express":"4","istanbul":"0","supertest":"0","cookie-session":"1"},"directories":{}},"1.0.1":{"name":"flash","version":"1.0.1","keywords":["flash","messages","express"],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"flash@1.0.1","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"homepage":"https://github.com/expressjs/flash","bugs":{"url":"https://github.com/expressjs/flash/issues"},"dist":{"shasum":"3a5b5ce43a13378e4a36b0c3447e25a6174d7538","tarball":"https://registry.npmjs.org/flash/-/flash-1.0.1.tgz","integrity":"sha512-0mxhKvVeVxKbZxzYhKUyufPIoAtLe2Fa/LASRzl4vgEZdps2bH5Qc5qSrdFHZNNbnXtI2Ez0+9OZCxMgyJW+EQ==","signatures":[{"sig":"MEUCIQDNGYJpEBMf1WyY5r7+1siDhdFdphnLGhw9601sr/ydGwIgMeoOdGYi8a7hPlw8o2NxyaKfHWR6U4IjreRYP2xf1Bc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js","LICENSE"],"_shasum":"3a5b5ce43a13378e4a36b0c3447e25a6174d7538","gitHead":"6fc5f3d966cca1b5b95a204f07a5abc9cddf7a8f","scripts":{"test":"mocha --reporter spec","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"https://github.com/expressjs/flash","type":"git"},"_npmVersion":"1.4.25","description":"Simple flash messages for Express","dependencies":{},"devDependencies":{"mocha":"1","express":"4","istanbul":"0","supertest":"0","cookie-session":"1"},"directories":{}},"1.1.0":{"name":"flash","version":"1.1.0","keywords":["flash","messages","express"],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"flash@1.1.0","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"homepage":"https://github.com/expressjs/flash","bugs":{"url":"https://github.com/expressjs/flash/issues"},"dist":{"shasum":"8ab2b29ed3b68a5cfb1a89bf98e7f69d7f1a020a","tarball":"https://registry.npmjs.org/flash/-/flash-1.1.0.tgz","integrity":"sha512-2pvqSI88nkPRSyh8kOJV0TqxlfLjZKS9b2jDf67RWGeIyicEGJoDovSyVS9zdiWbx/M9jzZkmFB5TSdaeBNSZA==","signatures":[{"sig":"MEQCIDdqY5dYkTuEnzxP+ahuzARmb1SVv4BPv5gasOGGePzLAiAYCBQLfMZN/7uJJ5aZ5DQtjn42L0ZMZw6JWIlAJXPlQA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js","LICENSE"],"_shasum":"8ab2b29ed3b68a5cfb1a89bf98e7f69d7f1a020a","gitHead":"0e922bf73fc4dfea8b22d94ec710c07a8e51ca47","scripts":{"test":"mocha --reporter spec","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"https://github.com/expressjs/flash","type":"git"},"_npmVersion":"1.4.26","description":"Simple flash messages for Express","dependencies":{},"devDependencies":{"mocha":"1","express":"4","istanbul":"0","supertest":"0","cookie-session":"1"},"directories":{}}},"time":{"created":"2012-08-06T04:36:07.472Z","modified":"2025-05-20T17:03:24.547Z","0.5.3":"2012-08-06T04:36:09.677Z","0.5.4":"2012-08-06T23:53:52.723Z","0.5.5":"2012-08-14T02:20:41.892Z","0.5.7":"2012-09-06T23:02:30.872Z","0.5.8":"2012-11-10T01:41:02.533Z","0.5.9":"2012-11-10T01:41:19.214Z","0.0.0":"2014-09-04T19:55:40.275Z","1.0.0":"2014-09-08T23:35:26.611Z","1.0.1":"2014-09-09T00:46:43.956Z","1.1.0":"2014-09-11T02:53:38.910Z"},"bugs":{"url":"https://github.com/expressjs/flash/issues"},"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","homepage":"https://github.com/expressjs/flash","keywords":["flash","messages","express"],"repository":{"url":"https://github.com/expressjs/flash","type":"git"},"description":"Simple flash messages for Express","maintainers":[{"email":"jonathanrichardong@gmail.com","name":"jongleberry"},{"email":"ljharb@gmail.com","name":"ljharb"}],"readme":"\n# flash\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Dependency Status][david-image]][david-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\nThe simplest flash implementation for Express.\n\n## Usage\n\n```bash\nnpm i flash\n```\n\n```js\napp.use(session()); // session middleware\napp.use(require('flash')());\n\napp.use(function (req, res) {\n  // flash a message\n  req.flash('info', 'hello!');\n  next();\n})\n```\n\n```jade\nfor message in flash\n  a.alert(class='alert-' + message.type)\n    p= message.message\n```\n\n## API\n\n### req.flash([type], msg)\n\nFlash a message defaulting the `type` to `info`.\n\n### res.locals.flash\n\nAn array of flash messages of the form:\n\n```json\n{\n  \"type\": \"info\",\n  \"message\": \"message\"\n}\n```\n\n[npm-image]: https://img.shields.io/npm/v/flash.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/flash\n[github-tag]: http://img.shields.io/github/tag/expressjs/flash.svg?style=flat-square\n[github-url]: https://github.com/expressjs/flash/tags\n[travis-image]: https://img.shields.io/travis/expressjs/flash.svg?style=flat-square\n[travis-url]: https://travis-ci.org/expressjs/flash\n[coveralls-image]: https://img.shields.io/coveralls/expressjs/flash.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/expressjs/flash?branch=master\n[david-image]: http://img.shields.io/david/expressjs/flash.svg?style=flat-square\n[david-url]: https://david-dm.org/expressjs/flash\n[license-image]: http://img.shields.io/npm/l/flash.svg?style=flat-square\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/flash.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/flash\n[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square\n[gittip-url]: https://www.gittip.com/jonathanong/\n","readmeFilename":"README.md","users":{"hema":true,"mrbgit":true,"cascadejs":true,"gabuladze":true,"lewisbrown":true,"rocket0191":true,"wangzongxu":true,"rubenjose75":true,"karzanosman984":true,"anygivensolutions":true}}