{"id":14973105,"url":"https://github.com/fcannizzaro/firebase-messaging","last_synced_at":"2025-06-10T22:03:07.472Z","repository":{"id":57236621,"uuid":"64422125","full_name":"fcannizzaro/firebase-messaging","owner":"fcannizzaro","description":"NodeJS module to send firebase messages","archived":false,"fork":false,"pushed_at":"2016-10-03T19:41:09.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T09:40:55.814Z","etag":null,"topics":["firebase-messages","nodejs","topic"],"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/fcannizzaro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-28T19:22:18.000Z","updated_at":"2018-04-23T10:56:38.000Z","dependencies_parsed_at":"2022-08-26T14:04:01.069Z","dependency_job_id":null,"html_url":"https://github.com/fcannizzaro/firebase-messaging","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Ffirebase-messaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Ffirebase-messaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Ffirebase-messaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Ffirebase-messaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcannizzaro","download_url":"https://codeload.github.com/fcannizzaro/firebase-messaging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcannizzaro%2Ffirebase-messaging/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259159621,"owners_count":22814490,"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":["firebase-messages","nodejs","topic"],"created_at":"2024-09-24T13:48:08.047Z","updated_at":"2025-06-10T22:03:07.440Z","avatar_url":"https://github.com/fcannizzaro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# firebase-messaging\n[![npm](https://img.shields.io/npm/v/firebase-messaging.svg)](https://www.npmjs.com/package/firebase-messaging)\n\nNodeJS module to send firebase messages\n\n# Install\n`npm install firebase-messaging`\n\n## topic(topic, data, [, options, callback])\nSend message to topic\n\n## message(to, data, [, options, callback])\nSend message to device\n \n# Options\n- *collapse_key* [**String**]\n- *priority* [**String**]\n- *time_to_live* [**Number**]\n- *delay_while_idle* [**Boolean**]\n- *notification* [**Object**]\n\n[See Firebase Docs](https://firebase.google.com/docs/cloud-messaging/http-server-ref)\n\n# Usage\n\n```javascript\n\nconst firebase = require(\"firebase-messaging\");\n\nvar client = new firebase(CLOUD_MESSAGING_KEY);\n\nvar data = {\n    title: \"@Test\",\n    content: \"@Content\"\n};\n\nvar options = {\n\tdelay_while_idle : true\t\n};\n\nclient.topic(\"news\", data, options, function(result){\n\t// request err or message id\n\tconsole.log(result);\t\n});\n\nclient.message(DEVICE_TOKEN, data);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcannizzaro%2Ffirebase-messaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcannizzaro%2Ffirebase-messaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcannizzaro%2Ffirebase-messaging/lists"}