{"id":22781646,"url":"https://github.com/walteribeiro/simple-notification","last_synced_at":"2025-06-12T00:05:05.187Z","repository":{"id":57360514,"uuid":"114300744","full_name":"walteribeiro/simple-notification","owner":"walteribeiro","description":"Simple Notifications for web aplications","archived":false,"fork":false,"pushed_at":"2020-04-08T10:36:28.000Z","size":630,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-02T02:39:43.483Z","etag":null,"topics":["javascript","notifications","web","web-notifications"],"latest_commit_sha":null,"homepage":"https://jsfiddle.net/walter1992/awt5mLk9/","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/walteribeiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-14T22:05:16.000Z","updated_at":"2020-04-08T10:39:27.000Z","dependencies_parsed_at":"2022-09-06T21:41:26.159Z","dependency_job_id":null,"html_url":"https://github.com/walteribeiro/simple-notification","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walteribeiro%2Fsimple-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walteribeiro%2Fsimple-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walteribeiro%2Fsimple-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walteribeiro%2Fsimple-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walteribeiro","download_url":"https://codeload.github.com/walteribeiro/simple-notification/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walteribeiro%2Fsimple-notification/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":257777237,"owners_count":22600617,"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":["javascript","notifications","web","web-notifications"],"created_at":"2024-12-11T21:08:02.467Z","updated_at":"2025-06-12T00:05:05.164Z","avatar_url":"https://github.com/walteribeiro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to simple-notification 👋\u003c/h1\u003e\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/simple-notification\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/v/simple-notification.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/walteribeiro/simple-notification#readme\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/walteribeiro/simple-notification/graphs/commit-activity\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/walteribeiro/simple-notification/blob/master/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/walteribeiro/simple-notification\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/walter19921\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Twitter: walter19921\" src=\"https://img.shields.io/twitter/follow/walter19921.svg?style=social\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e Simple Notifications for web aplications\n\n### ✨ [Demo](https://jsfiddle.net/walter1992/awt5mLk9/)\n\n## Install\n\n```sh\nyarn add simple-notification\n```\n\n## Usage\n\nAvailable methods\n```javascript\nsimpleNotify.basic(\"message\", \"title\", options)\nsimpleNotify.info(\"message\", \"title\", options)\nsimpleNotify.danger(\"message\", \"title\", options)\nsimpleNotify.success(\"message\", \"title\", options)\nsimpleNotify.warning(\"message\", \"title\", options)\n```\nDefault options\n```javascript\nvar options = {\n  type: '',\n  title: '',\n  content: '',\n  lifetime: 5000,\n  sticky: false,\n  closeTrigger: true,\n  iconCls: '',\n};\n```\n\n| Prop | Description |\n| --- | --- |\n| **`type`** | success, info, warning, danger. |\n| **`title`** | The title of notification. |\n| **`content`** | The content of notification. |\n| **`lifetime`** | The time in milliseconds to destroy the notification. |\n| **`sticky`** | If **true** the notification won't be destroyed automatically. |\n| **`closeTrigger`** | If **false** the close button won't be displayed. |\n| **`iconCls`** | Represent the icon class of FontAwesome. For Example 'envelope', it isn't necessary to give the full name like 'fa fa-envelope'. |\n\n### Dependencies\n\nThis library needs the JQuery.\n\nFontAwesome is not required, only if you like using icons.\n\n## Development\n\nTo compile run:\n\n```bash\n$ gulp default\n```\n\nTo serve local run:\n\n```bash\n$ npm run dev\n```\n\n## Author\n\n👤 **Walter Ribeiro**\n\n* Twitter: [@walter19921](https://twitter.com/walter19921)\n* Github: [@walteribeiro](https://github.com/walteribeiro)\n* LinkedIn: [@walterribeiroti](https://linkedin.com/in/walterribeiroti)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/walteribeiro/simple-notification/issues). You can also take a look at the [contributing guide](https://github.com/walteribeiro/simple-notification/blob/master/CONTRIBUTING.md).\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## 📝 License\n\nCopyright © 2020 [Walter Ribeiro](https://github.com/walteribeiro).\u003cbr /\u003e\nThis project is [MIT](https://github.com/walteribeiro/simple-notification/blob/master/LICENSE) licensed.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalteribeiro%2Fsimple-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalteribeiro%2Fsimple-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalteribeiro%2Fsimple-notification/lists"}