{"library":"connect-flash","type":"library","category":null,"description":"connect-flash is a middleware for Node.js applications, primarily used with Connect and Express frameworks, to provide transient flash messages. These messages are stored in the user's session and are cleared after being displayed, making them ideal for user feedback during redirects (e.g., \"Successfully logged in!\" or \"Invalid credentials.\"). Originally extracted from Express 2.x for use with Express 3.x after direct flash support was removed, the package is quite old, with its latest version (0.1.1) published in 2013. Despite its age and lack of active maintenance, it continues to be utilized by many projects, often requiring adaptation for modern Express (4.x+) applications. It differentiates itself through its simplicity and direct integration with session middleware, offering a straightforward API for managing messages across HTTP requests.","language":"javascript","status":"abandoned","version":"0.1.1","tags":["javascript","connect","express","flash","messages"],"last_verified":"Wed May 27","install":[{"cmd":"npm install connect-flash","imports":["import flash from 'connect-flash';","req.flash('success', 'Operation successful!');\nconst messages = req.flash('info');"]},{"cmd":"yarn add connect-flash","imports":[]},{"cmd":"pnpm add connect-flash","imports":[]}],"homepage":null,"github":"https://github.com/jaredhanson/connect-flash","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/connect-flash","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/connect-flash/compatibility"}}