{"_id":"@almvasiliev/notify","_rev":"3-1ec6204f26171f86d0ed1199afc15701","name":"@almvasiliev/notify","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@almvasiliev/notify","version":"1.0.0","keywords":["telegram","slack","send","post","message","alarm","notification"],"author":{"name":"Aleksey Vasiliev","email":"https://www.linkedin.com/in/almvasiliev/"},"license":"MIT","_id":"@almvasiliev/notify@1.0.0","maintainers":[{"name":"almvasiliev","email":"almvasiliev@gmail.com"}],"dist":{"shasum":"dd439fbf84485e9f32cd82da9692502069f1bffe","tarball":"https://registry.npmjs.org/@almvasiliev/notify/-/notify-1.0.0.tgz","fileCount":26,"integrity":"sha512-RI9C8NGKptcv/yPRZW5GzqM01VlhY93oUpFZ9QkclnVVl8hoAzv86br4aqGX42CazaVqYUAHiL+Ittz50vifXg==","signatures":[{"sig":"MEYCIQDgy7e9WQgsor0isMWDTe9ypkNnnv7jmOXAKeYUt4RLHwIhAKRpLp2Yg44M8GnWWPba/GJakSqMLDvXacIwRlo5dV2h","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20886},"main":"./dist/index.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"almvasiliev","email":"almvasiliev@gmail.com"},"_npmVersion":"10.9.0","description":"This is an abstraction layer that allows you to send messages to multiple platforms (Telegram and Slack) using a unified API","directories":{},"_nodeVersion":"22.11.0","dependencies":{"node-fetch":"^3.3.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.2","@types/node":"^24.5.2"},"_npmOperationalInternal":{"tmp":"tmp/notify_1.0.0_1758637854170_0.018646973752630913","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@almvasiliev/notify","version":"1.0.1","keywords":["telegram","slack","send","post","message","alarm","notification"],"author":{"name":"Aleksey Vasiliev","email":"https://www.linkedin.com/in/almvasiliev/"},"license":"MIT","_id":"@almvasiliev/notify@1.0.1","maintainers":[{"name":"almvasiliev","email":"almvasiliev@gmail.com"}],"dist":{"shasum":"94eda42f0152fbfaeb9ba27e0eeddf6f3a7a0368","tarball":"https://registry.npmjs.org/@almvasiliev/notify/-/notify-1.0.1.tgz","fileCount":31,"integrity":"sha512-+Bo5WndzLHePsOq23r/2f7cWhf8JBfd/uwn5qknIS9oTRXdZ/fsWIQjluadPu8zP0bBJQRvLQMGFU8USbz9BhQ==","signatures":[{"sig":"MEUCIAnETZb20atLh+WdZIj8tC4XussjGea1Iv5xJJPvXw5EAiEAtx8/F8TEQoR4DgqnTwgsKApDuwxTQmvx/O+hw99ybv0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16027},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc && tsc-alias","prepublishOnly":"npm run build"},"_npmUser":{"name":"almvasiliev","email":"almvasiliev@gmail.com"},"_npmVersion":"10.9.0","description":"This is an abstraction layer that allows you to send messages to multiple platforms (Telegram and Slack) using a unified API","directories":{},"_nodeVersion":"22.11.0","dependencies":{"node-fetch":"^3.3.0"},"_hasShrinkwrap":false,"devDependencies":{"tsc-alias":"^1.8.16","typescript":"^5.9.2","@types/node":"^24.5.2"},"_npmOperationalInternal":{"tmp":"tmp/notify_1.0.1_1758697793070_0.27262363784585486","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@almvasiliev/notify","version":"1.0.2","description":"This is an abstraction layer that allows you to send messages to multiple platforms (Telegram and Slack) using a unified API","main":"./dist/index.js","types":"./dist/index.d.ts","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc && tsc-alias","prepublishOnly":"npm run build"},"keywords":["telegram","slack","send","post","message","alarm","notification"],"author":{"name":"Aleksey Vasiliev","email":"https://www.linkedin.com/in/almvasiliev/"},"license":"MIT","devDependencies":{"@types/node":"^24.5.2","tsc-alias":"^1.8.16","typescript":"^5.9.2"},"dependencies":{"node-fetch":"^3.3.0"},"_id":"@almvasiliev/notify@1.0.2","gitHead":"931bdfc7d299958ef7953e4de4ff65d636cc82f9","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-XWs6O+XEycCH6l9RQ1Zx/oxOWi7hIBukQLmZBE6oz0CrfR7nw31k4RIndApYTMq5fZQP+8pqmRcECECWtEnm7A==","shasum":"179daf23dbd07e0fbee7a6a97b885e58fd42c63a","tarball":"https://registry.npmjs.org/@almvasiliev/notify/-/notify-1.0.2.tgz","fileCount":31,"unpackedSize":16028,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDU30erhvrnncj05S8RLIE7hdjklqfV+HLBvxxfTsAI8gIgc9W+VrlbeUwWzbcnUzzeULzt4t2iYTwvgwimZVPqRjo="}]},"_npmUser":{"name":"almvasiliev","email":"almvasiliev@gmail.com"},"directories":{},"maintainers":[{"name":"almvasiliev","email":"almvasiliev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/notify_1.0.2_1758699791873_0.6327872308663165"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-23T14:30:54.042Z","modified":"2025-09-24T07:43:12.233Z","1.0.0":"2025-09-23T14:30:54.354Z","1.0.1":"2025-09-24T07:09:53.240Z","1.0.2":"2025-09-24T07:43:12.063Z"},"author":{"name":"Aleksey Vasiliev","email":"https://www.linkedin.com/in/almvasiliev/"},"license":"MIT","keywords":["telegram","slack","send","post","message","alarm","notification"],"description":"This is an abstraction layer that allows you to send messages to multiple platforms (Telegram and Slack) using a unified API","maintainers":[{"name":"almvasiliev","email":"almvasiliev@gmail.com"}],"readme":"# @almvasiliev/notify\nThis is an abstraction layer that allows you to send messages to multiple platforms (Telegram and Slack) using a unified API.\n\n## Example Usage\n\n## Installation\n\n```bash\nnpm install @almvasiliev/notify\n```\n\n## Basic Usage\n\n```typescript\nimport {\n  Telegram,\n  Slack,\n  type telegramSendMessage,\n  type slackPostMessage\n} from '@almvasiliev/notify'\n\n\nasync function sendTelegramAlert(params: telegramSendMessage) {\n  const telegram = new Telegram({ accessToken: '1234567890:AAHfZ0ExAmPleTeLeGrAmBoTtOkEn12345' })\n  return telegram.sendMessage(params)\n}\n\nasync function sendSlackAlert(params: slackPostMessage) {\n  const slack = new Slack({ accessToken: 'xoxb-123456789012-0987654321098-AbCdEfGhIjKlMnOpQrStUvWx' })\n  return slack.postMessage(params)\n}\n\n// Send message to the Telegram channel\n// Required options: \"chat_id\" and \"text\"\n// All other Telegram API options are optional\nconst telegramAlert = await sendTelegramAlert({\n  chat_id: '-123456789',\n  text: 'Hello World',\n  parse_mode: 'HTML', // TypeScript will validate this\n})\n\nconsole.log(`telegramAlert: ${JSON.stringify(telegramAlert)}`)\n\n// Send message to the Slack channel\n// Required options: \"channel\" and \"text\"\n// All other Slack API options are optional\nconst slackAlert = await sendSlackAlert({\n  channel: 'ABC12345XYZ',\n  text: 'Hello World',\n  blocks: [\n    {\n      type: 'section',\n      text: {\n        type: 'mrkdwn',\n        text: 'Hey, nice to meet you',\n      },\n    },\n  ]\n})\n\nconsole.log(`slackAlert: ${JSON.stringify(slackAlert)}`)\n```\n\n**Note:** The tokens shown above are placeholder values for demonstration purposes only.\n> To create and set up a **Telegram** bot, see the [official Telegram Bot API docs](https://core.telegram.org/bots/api#authorizing-your-bot).  \n> To create and set up a **Slack** app, see the [Slack authentication basics](https://api.slack.com/authentication/basics).  \n\n## Type Definitions Included\n\nThis package includes:\n- `*.d.ts` files for all exported classes and functions\n- Type definitions for all parameters and return values\n- IntelliSense support in VS Code and other TypeScript-aware editors\n- Declaration maps for better debugging experience","readmeFilename":"README.md"}