{"id":15007552,"url":"https://github.com/parthamk/notification-badge","last_synced_at":"2026-02-07T13:31:24.911Z","repository":{"id":244910177,"uuid":"816656222","full_name":"parthamk/notification-badge","owner":"parthamk","description":"Simple notification badge react component this is an forked version of react-notification-badge and I have updated the dependency","archived":false,"fork":false,"pushed_at":"2024-07-22T14:01:03.000Z","size":123,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T11:42:56.229Z","etag":null,"topics":["npm-package","npmjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@parthamk/notification-badge","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/parthamk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T06:56:12.000Z","updated_at":"2024-07-22T14:01:06.000Z","dependencies_parsed_at":"2025-02-15T08:31:31.801Z","dependency_job_id":"c5a4b811-afbe-4232-849d-50aa2578c715","html_url":"https://github.com/parthamk/notification-badge","commit_stats":null,"previous_names":["parthamk/notification-badge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/parthamk/notification-badge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthamk%2Fnotification-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthamk%2Fnotification-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthamk%2Fnotification-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthamk%2Fnotification-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parthamk","download_url":"https://codeload.github.com/parthamk/notification-badge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthamk%2Fnotification-badge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29195065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T12:38:28.597Z","status":"ssl_error","status_checked_at":"2026-02-07T12:38:23.888Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["npm-package","npmjs"],"created_at":"2024-09-24T19:11:20.863Z","updated_at":"2026-02-07T13:31:24.896Z","avatar_url":"https://github.com/parthamk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# notification-badge \n\nSimple notification badge react component this is an forked version of react-notification-badge and I have updated the dependency\n\n[![Gyazo](http://i.gyazo.com/70028f7eb324a89fb130401774e8a159.gif)](http://gyazo.com/70028f7eb324a89fb130401774e8a159)\n\n## Demo\n\n[View Demo](http://mobilusoss.github.io/react-notification-badge/example/)\n\n## Installation\n\n```bash\nnpm install --save @parthamk/notification-badge\n```\n\n## API\n\n### `NotificationBadge`\n\n#### Props\n\n```javascript\nNotificationBadge.propTypes = {\n  count: React.PropTypes.number,\n  label: React.PropTypes.string,\n  containerStyle: React.PropTypes.object,\n  style: React.PropTypes.object,\n  className: React.PropTypes.string,\n  effect: React.PropTypes.array,\n  duration: React.PropTypes.number,\n};\n```\n\n- `count`: Badge count, if `count \u003c 1`, badge will not shown.\n\n- `label`: Badge label will be rendered instead of count.\n\n- `containerStyle`: custom style of container\n\n- `style`: custom style of badge\n\n- `className`: className of badge\n\n- `effect`: effect of notification.\n  effect array should be `[string, string, object, object]`.\n\n  `effect[0]` will be applied to `transform` on first frame.\n  `effect[1]` will be applied to `transform` on `frameLength`.\n  `effect[2]` will be applied as `style[key] = value` on first frame.\n  `effect[3]` will be applied to `style[key] = value` on `frameLength`.\n\n  Pre defined effect is available as\n\n  - `Effect.ROTATE_X`\n  - `Effect.ROTATE_Y`\n  - `Effect.SCALE`\n\n- `frameLength`: Frame length for `effect[1]` and `effect[3]` (default 30.0, 60.0fps/30.0 = 0.5 second)\n\n## Usage example\n\n```javascript\nimport NotificationBadge from \"@parthamk/notification-badge\";\nimport { Effect } from \"@parthamk/notification-badge\";\n\n\u003cdiv style={container}\u003e\n  \u003cNotificationBadge count={this.state.count} effect={Effect.SCALE} /\u003e\n\u003c/div\u003e;\n```\n\nSee [example](https://github.com/mobilusoss/react-notification-badge/tree/develop/example)\n\n```bash\nnpm install\nnpm run start:example\n```\n\n## Tests\n\n```bash\nnpm test\n```\n\n## Update dependencies\n\nUse [npm-check-updates](https://www.npmjs.com/package/npm-check-updates)\n\n## License\n\n[![License: MPL 2.0](https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparthamk%2Fnotification-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparthamk%2Fnotification-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparthamk%2Fnotification-badge/lists"}