{"_id":"@a1-dev/discord-notifier","_rev":"7-729836596bf82f774826a5df5e991355","name":"@a1-dev/discord-notifier","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.2":{"name":"@a1-dev/discord-notifier","version":"0.1.2","license":"MIT","_id":"@a1-dev/discord-notifier@0.1.2","maintainers":[{"name":"antofa","email":"antofa1@mail.ru"}],"dist":{"shasum":"e0d493ef69d0f8dc84196dfed26a9e30985cf765","tarball":"https://registry.npmjs.org/@a1-dev/discord-notifier/-/discord-notifier-0.1.2.tgz","fileCount":5,"integrity":"sha512-zYk9tX5E9EZ67e+ioR2ECdzphvfeWWQm0+xj2SDkWtOPTD156UAWJiYItvIzSJz3tOVSaLrHGZp9rKRJ1GHl1g==","signatures":[{"sig":"MEYCIQCAW+nXa+siMoLVycEX2eH3fmxeSQR2omk2WIiLfU75kAIhAJjxfylBY8G9IQgpZjPjHWDliUnre7dMdboPddg7NRsx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4789},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"783a555e16b310a818192852f87cade99081a3cc","scripts":{"build":"tsc -p tsconfig.json","clean":"rm -rf dist","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"antofa","email":"antofa1@mail.ru"},"_npmVersion":"10.9.2","description":"Lightweight Discord webhook notifier","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/discord-notifier_0.1.2_1766680448431_0.9399041521647338","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@a1-dev/discord-notifier","version":"0.1.3","license":"MIT","_id":"@a1-dev/discord-notifier@0.1.3","maintainers":[{"name":"antofa","email":"antofa1@mail.ru"}],"dist":{"shasum":"06d6d68fc2869d558aee03ad28f5b95f8c5d78d3","tarball":"https://registry.npmjs.org/@a1-dev/discord-notifier/-/discord-notifier-0.1.3.tgz","fileCount":6,"integrity":"sha512-XcjEaJzRvJpdFI+L8FlwTdUGcWoF9qjd6J/luasgKGmabZ7ew044CrKiNbqQCMsU5Y59LQoc5oJJo0RYOz57MQ==","signatures":[{"sig":"MEUCIFtlInqnaBacj0+DKM221D5zzD72+F4/5dIGWbf9yjrWAiEArSyoOwyS4OoUKqils8oKEItWO1yP21OHDoyLxfMFUoU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6484},"main":"dist/cjs/index.cjs","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"a89060a0ee8e862aa3ff61cd52cbf537fd670ff6","scripts":{"build":"npm run clean && npm run build:esm && npm run build:cjs && npm run build:cjs:rename","clean":"rm -rf dist","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","prepublishOnly":"pnpm run build","build:cjs:rename":"node scripts/rename-cjs.cjs"},"_npmUser":{"name":"antofa","email":"antofa1@mail.ru"},"_npmVersion":"10.9.2","description":"Lightweight Discord webhook notifier","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/discord-notifier_0.1.3_1766690948406_0.6471992785374927","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@a1-dev/discord-notifier","version":"0.1.4","license":"MIT","_id":"@a1-dev/discord-notifier@0.1.4","maintainers":[{"name":"antofa","email":"antofa1@mail.ru"}],"dist":{"shasum":"82d7b57e39d61ffed66c4d9ee51c269ac8b89d8a","tarball":"https://registry.npmjs.org/@a1-dev/discord-notifier/-/discord-notifier-0.1.4.tgz","fileCount":6,"integrity":"sha512-gPTzVduAS8c6G9SwKrRU4B7XmL/CmHzcnD7YjxBPmwarymImNjKv74Tvrm6dAnmea5oToiv6YdVnrqC4YCX8bQ==","signatures":[{"sig":"MEYCIQCr3hVQUb6g8Rqo0PZta7WKZfp7Dyois6HgXLW0cR9EQgIhAMwn20aJbWHyYnR5kneX/fsaG+0HtNLv39bpWXtq+fAm","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6485},"main":"dist/cjs/index.cjs","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"4b9444288b588e98af099b3db85e0eec4493e3c4","scripts":{"build":"npm run clean && npm run build:esm && npm run build:cjs && npm run build:cjs:rename","clean":"rm -rf dist","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","prepublishOnly":"pnpm run build","build:cjs:rename":"node scripts/rename-cjs.cjs"},"_npmUser":{"name":"antofa","email":"antofa1@mail.ru"},"_npmVersion":"10.9.2","description":"Lightweight Discord webhook notifier","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/discord-notifier_0.1.4_1766692393351_0.5212850362830634","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@a1-dev/discord-notifier","version":"0.1.5","description":"Lightweight Discord webhook notifier","type":"module","main":"dist/cjs/index.cjs","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"license":"MIT","devDependencies":{"@types/node":"^25.0.10","typescript":"^5.9.3"},"scripts":{"build":"npm run clean && npm run build:esm && npm run build:cjs && npm run build:cjs:rename","build:esm":"tsc -p tsconfig.esm.json","build:cjs":"tsc -p tsconfig.cjs.json","build:cjs:rename":"node scripts/rename-cjs.cjs","clean":"rm -rf dist"},"_id":"@a1-dev/discord-notifier@0.1.5","_integrity":"sha512-qOLub6n6ICTz9OrEkrMy38bbur4u454JWy9t4Qi9tnWQD1ZXDC1MVHNZ4tjfHaSk2t/mOyZFoNsbboYPkgvvxQ==","_resolved":"C:\\Users\\Admin\\AppData\\Local\\Temp\\bcf8567ca3bf63b47ea879692260f73e\\a1-dev-discord-notifier-0.1.5.tgz","_from":"file:a1-dev-discord-notifier-0.1.5.tgz","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-qOLub6n6ICTz9OrEkrMy38bbur4u454JWy9t4Qi9tnWQD1ZXDC1MVHNZ4tjfHaSk2t/mOyZFoNsbboYPkgvvxQ==","shasum":"86a387f31fb026cbb1a39d1de8e37b544dffd6d0","tarball":"https://registry.npmjs.org/@a1-dev/discord-notifier/-/discord-notifier-0.1.5.tgz","fileCount":6,"unpackedSize":7462,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCU82g2OowUUii11rUMcrWiBPV10oiElmdtl8BXb328gwIhALFxzGa1wj+1w7NCSE3ruXiSilu0pbODCq7OTaPakZ+J"}]},"_npmUser":{"name":"antofa","email":"antofa1@mail.ru"},"directories":{},"maintainers":[{"name":"antofa","email":"antofa1@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/discord-notifier_0.1.5_1769085221155_0.984937129367748"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-25T16:34:08.337Z","modified":"2026-01-22T12:33:41.422Z","0.1.1":"2025-12-25T16:11:16.777Z","0.1.2":"2025-12-25T16:34:08.614Z","0.1.3":"2025-12-25T19:29:08.543Z","0.1.4":"2025-12-25T19:53:13.503Z","0.1.5":"2026-01-22T12:33:41.295Z"},"license":"MIT","description":"Lightweight Discord webhook notifier","maintainers":[{"name":"antofa","email":"antofa1@mail.ru"}],"readme":"# Discord Notifier\r\n\r\nLightweight Discord webhook notifier.\r\n\r\n## Install\r\n\r\n```bash\r\npnpm add @a1-dev/discord-notifier\r\n```\r\n\r\nOr directly from GitHub:\r\n\r\n```json\r\n{\r\n  \"dependencies\": {\r\n    \"@a1-dev/discord-notifier\": \"github:antofa/discord-notifier#main\"\r\n  }\r\n}\r\n```\r\n\r\n## Usage\r\n\r\n```ts\r\nimport { DiscordClient } from \"@a1-dev/discord-notifier\";\r\n\r\nconst client = new DiscordClient({\r\n  webhookUrl: process.env.DISCORD_WEBHOOK_URL,\r\n  name: \"My Bot\",\r\n});\r\n\r\nawait client.notify({\r\n  title: \"Job Failed\",\r\n  description: \"Unexpected error while running task\",\r\n  color: 0xf1c40f,\r\n  fields: [{ name: \"Env\", value: \"prod\", inline: true }],\r\n});\r\n```\r\n\r\n## Example file\r\n\r\nSee `test.ts` for a runnable example.\r\n\r\n## Build\r\n\r\n```bash\r\npnpm run build\r\n```\r\n\r\n## Run test.ts\r\n\r\n```bash\r\nDISCORD_WEBHOOK_URL=\"your_webhook_url\" pnpm dlx tsx test.ts\r\n```\r\n\r\nWindows CMD:\r\n```bash\r\nset DISCORD_WEBHOOK_URL=your_webhook_url && pnpm dlx tsx test.ts\r\n```\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}