{"id":19658131,"url":"https://github.com/cdaringe/coins-notify","last_synced_at":"2026-05-15T02:46:54.857Z","repository":{"id":32135586,"uuid":"35708282","full_name":"cdaringe/coins-notify","owner":"cdaringe","description":"show notifications via the browser. uses os native notifications with jQuery notifyjs fallback","archived":false,"fork":false,"pushed_at":"2023-12-15T17:29:09.000Z","size":271,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-18T06:08:46.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdaringe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2015-05-16T03:28:58.000Z","updated_at":"2020-07-30T12:28:43.000Z","dependencies_parsed_at":"2024-11-11T15:38:46.436Z","dependency_job_id":"6bc8e4cb-fb03-4054-a270-d3b0b037c337","html_url":"https://github.com/cdaringe/coins-notify","commit_stats":{"total_commits":20,"total_committers":3,"mean_commits":6.666666666666667,"dds":"0.15000000000000002","last_synced_commit":"1896b47eb3b36a1229e2f6a93b188f19a78fe6f0"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fcoins-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fcoins-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fcoins-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fcoins-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdaringe","download_url":"https://codeload.github.com/cdaringe/coins-notify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240965808,"owners_count":19885967,"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":[],"created_at":"2024-11-11T15:36:12.834Z","updated_at":"2026-05-15T02:46:54.816Z","avatar_url":"https://github.com/cdaringe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[ ![Codeship Status for cdaringe/coins-notify](https://codeship.com/projects/171c47e0-ddab-0132-124a-5604aedd125f/status?branch=master)](https://codeship.com/projects/80303)\n\n# coins-notify\nshow notifications in the browser. attempts to use 'growl' like notifications first, but falls back on notifyjs (jQuery plugin) if the browser user has not accepted (or has denied) growl like notifications.\n\n# usage\nNote: if jQuery fallback is being used, jQuery \u0026\u0026 [notifyjs](http://notifyjs.com/) must be loaded onto the window.  This module does **not** address those dependencies.\n\n```js\nvar Notify = require('coins-notify');\nvar notifier = new Notifier();\n\n// show a notification\nnotifier.push({\n    body: 'test!',\n    className: 'info'\n});\n```\n###### default, os/growl mode\n\u003cimg src=\"https://raw.githubusercontent.com/cdaringe/coins-notify/master/img/coins-notify-growl.png\" height=\"100px\" /\u003e\n\n###### fallback mode\n\u003cimg src=\"https://raw.githubusercontent.com/cdaringe/coins-notify/master/img/coins-notify-notifyjs.png\" height=\"100px\" /\u003e\n\n\n# api\n## Notify(opts) [constructor]\n### opts\n*type: object*\n- `maxQueue` *number* number of messages to internally retain history over.  not persistent accross browser sessions. See `notifyInstance.queue` for history\n\n\n## push(opts)\n### opts\n*type: object*\n\n- `body`* *string* text shown in notification body\n- `className` *string* class name applied.  Supported classNames are those supported in [notifyjs](http://notifyjs.com/) (alt mode only)\n- `alt`/`alternative`/`fallback` *boolean* force the notifier to use the notifyjs fallback\n- `icon` *string* absolute url to icon (default mode only)\n- `tag` *string* tag!\n- `timeout` *number* ms [default, 5000], duration for notification to stay up\n- `notifyShow` *function* callback\n- `notifyClose` *function* callback\n- `notifyClick` *function* callback\n- `notifyError` *function* callback\n\n# changelog\n- 1.1.5 - improve fallback mode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fcoins-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdaringe%2Fcoins-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fcoins-notify/lists"}