{"id":18331408,"url":"https://github.com/notify-events/nodejs","last_synced_at":"2025-07-11T14:35:27.104Z","repository":{"id":43914410,"uuid":"277056131","full_name":"notify-events/nodejs","owner":"notify-events","description":"Node.js module to integrate your project with Notify.Events service.","archived":false,"fork":false,"pushed_at":"2025-02-11T12:37:40.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-27T16:50:28.271Z","etag":null,"topics":["alert","call","node-js","notification","slack","teams","telegram","viber","voice"],"latest_commit_sha":null,"homepage":"https://notify.events/source/78","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/notify-events.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-04T06:52:08.000Z","updated_at":"2025-02-11T12:37:43.000Z","dependencies_parsed_at":"2025-06-27T16:37:41.255Z","dependency_job_id":"d1bfcd35-966f-4942-abdb-2fdb0a7eb397","html_url":"https://github.com/notify-events/nodejs","commit_stats":{"total_commits":15,"total_committers":4,"mean_commits":3.75,"dds":0.4,"last_synced_commit":"c9dc2e0f0effadff6787ee665c39058069595d75"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/notify-events/nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notify-events%2Fnodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notify-events%2Fnodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notify-events%2Fnodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notify-events%2Fnodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notify-events","download_url":"https://codeload.github.com/notify-events/nodejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notify-events%2Fnodejs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264833287,"owners_count":23670617,"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":["alert","call","node-js","notification","slack","teams","telegram","viber","voice"],"created_at":"2024-11-05T19:31:38.437Z","updated_at":"2025-07-11T14:35:27.075Z","avatar_url":"https://github.com/notify-events.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js client for Notify.Events\n\nA simple node.js extension that simplifies the process of integrating your project with the [Notify.Events](https://notify.events) service to send messages to your channels.\n\n#### Instruction in other languages\n\n- [Русский](/docs/ru-RU/README.md)\n\n# Installation\n\nThe preferred way to install this extension is through [npm](https://www.npmjs.com/get-npm).\n\nEither run\n\n```\nnpm install @notify.events/nodejs\n```\n\nor add\n\n```\n\"@notify.events/nodejs\": \"~1.0\"\n```\n\nto the dependencies section of your package.json.\n\n# Usage\n\nTo use this extension, you need to import the Message class into your Node.js script.\n\nIf you have used npm for installation, it will be enough to include lib like this:\n\n```nodejs\nconst Message = require('@notify.events/nodejs').Message;\n```\n\nOtherwise, if you added the lib manually, you need to import the Message by full path:\n\n```nodejs\nconst Message = require('./path/to/your/Message');\n```\n\nAfter that, you can create a message object, set the necessary parameters and send the message to the channel.\n\n### Usage example\n\n```nodejs\nconst Message = require('@notify.events/nodejs').Message;\n\n// Defining channel token.\n// You get this token when creating a channel on the Notify.Events service.\nconst token = 'XXXXXXXX';\n\n// Create a message object.\nconst message = new Message('Some \u003cb\u003eimportant\u003c/b\u003e message', 'Title', Message.PRIORITY_HIGH, Message.LEVEL_ERROR);\n\n// Attach the file to the message.\nmessage.addFile('path\\to\\local\\file');\n\n// Send a message to your channel in Notify.Events.\nmessage.send(token);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotify-events%2Fnodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotify-events%2Fnodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotify-events%2Fnodejs/lists"}