{"id":26770569,"url":"https://github.com/fakhir-shad/js-flash-messages","last_synced_at":"2025-06-26T23:39:59.442Z","repository":{"id":57283131,"uuid":"176450265","full_name":"fakhir-shad/js-flash-messages","owner":"fakhir-shad","description":"A simple javascript library to handle flash messages via Cookies","archived":false,"fork":false,"pushed_at":"2019-03-20T19:25:56.000Z","size":12,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T18:05:46.132Z","etag":null,"topics":["cookies","flash-message","in-app","javascript","js-flash-messages","object"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fakhir-shad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-19T07:25:16.000Z","updated_at":"2023-06-06T16:23:50.000Z","dependencies_parsed_at":"2022-09-17T12:50:56.848Z","dependency_job_id":null,"html_url":"https://github.com/fakhir-shad/js-flash-messages","commit_stats":null,"previous_names":["fakhir-shad/js-flash-messages"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakhir-shad%2Fjs-flash-messages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakhir-shad%2Fjs-flash-messages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakhir-shad%2Fjs-flash-messages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakhir-shad%2Fjs-flash-messages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fakhir-shad","download_url":"https://codeload.github.com/fakhir-shad/js-flash-messages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249125961,"owners_count":21216705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cookies","flash-message","in-app","javascript","js-flash-messages","object"],"created_at":"2025-03-28T23:15:50.746Z","updated_at":"2025-04-15T18:06:04.302Z","avatar_url":"https://github.com/fakhir-shad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-flash-message\n\n## Installation\n\n### Package Manager\n\n#### NPM\n\n```\nnpm install js-flash-message --save\n```\n\n### Basic Usage\n\n#### First import the library\n\n```\nimport Flash from 'js-flash-message'\n\n```\n\n#### Create flash message using 'create' method\n\n```\nFlash.create({type: 'success', message: 'Hello World!'});\n```\n\nThe create method accepts only 1 parameter which is of type object. Flash will not be set if an empty object is passed.\n\n#### Retrieve flash message using 'get' method\n\n```\nconst flashes = Flash.get()\n```\n\nThis method will return an Array of objects containing all the flash messages set. Once received Flash messages will be flushed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffakhir-shad%2Fjs-flash-messages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffakhir-shad%2Fjs-flash-messages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffakhir-shad%2Fjs-flash-messages/lists"}