{"_id":"@byu-oit/post-to-slack","_rev":"32-e7cf16e305b4ccdeeb1a152421f900f8","name":"@byu-oit/post-to-slack","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@byu-oit/post-to-slack","version":"0.0.1","keywords":["slack","request","byu"],"author":{"name":"Spencer Holman"},"license":"Apache-2.0","_id":"@byu-oit/post-to-slack@0.0.1","maintainers":[{"name":"saholman","email":"spencer.a.holman@gmail.com"}],"homepage":"https://github.com/byu-oit/post-to-slack#readme","bugs":{"url":"https://github.com/byu-oit/post-to-slack/issues"},"dist":{"shasum":"c20b87ec95e692c9f5e52c8c84344284193c5155","tarball":"https://registry.npmjs.org/@byu-oit/post-to-slack/-/post-to-slack-0.0.1.tgz","integrity":"sha512-zit2l4Wc1AF8wCYFFB4dlvoGEdYubznV5vFYkdxmrjAE6FHMtOl4GEdUeNaIKmQw2sJvLZo/6iESzKo5LjoyUw==","signatures":[{"sig":"MEYCIQDhE5eYBXHjYm6pKUxLKDIv4CksmqjV1vdJeWbtG8MoWgIhAM3EN6F797JyX1+rLqxNE2n3kmIuB1+ukXtoZV1GtuMI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"c20b87ec95e692c9f5e52c8c84344284193c5155","gitHead":"43914996450dc8e45dff61b726307d14116c1e47","scripts":{"test":"node test.js"},"_npmUser":{"name":"saholman","email":"spencer.a.holman@gmail.com"},"repository":{"url":"git+https://github.com/byu-oit/post-to-slack.git","type":"git"},"_npmVersion":"3.10.10","description":"A simple module to post messages to a slack incoming webhook","directories":{},"_nodeVersion":"6.11.0","dependencies":{"request":"^2.81.0"},"_npmOperationalInternal":{"tmp":"tmp/post-to-slack-0.0.1.tgz_1500665739264_0.8696915763430297","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-07-21T19:35:40.187Z","modified":"2026-07-06T18:20:35.983Z","0.0.1":"2017-07-21T19:35:40.187Z"},"bugs":{"url":"https://github.com/byu-oit/post-to-slack/issues"},"author":{"name":"Spencer Holman"},"license":"Apache-2.0","homepage":"https://github.com/byu-oit/post-to-slack#readme","keywords":["slack","request","byu"],"repository":{"url":"git+https://github.com/byu-oit/post-to-slack.git","type":"git"},"description":"A simple module to post messages to a slack incoming webhook","maintainers":[{"email":"scott_hutchings@byu.edu","name":"yoshutch"},{"email":"lehi_alcantara@byu.edu","name":"lehinpm"},{"email":"it@byu.edu","name":"oscea"},{"email":"stuft2@protonmail.com","name":"stuft2"},{"email":"matthew.hailstone@gmail.com","name":"mhailstone"},{"email":"arasmus8@gmail.com","name":"arasmus8"},{"email":"garygsc@gmail.com","name":"garygsc"},{"email":"github@snelg.com","name":"snelg"},{"email":"danielduraesm@gmail.com","name":"gholl0"},{"email":"developertools@byu.edu","name":"byu-oit-bot"},{"email":"micah.weatherhead@gmail.com","name":"mjweather"},{"email":"jvisker@byu.edu","name":"jvisker"}],"readme":"# post-to-slack\nA simple npm module for posting to Slack Incoming Webhooks (https://byu-oit.slack.com/apps/A0F7XDUAZ-incoming-webhooks)\n\n## Usage\n#### Posting simple text\n```\nconst slack = require('post-to-slack')\nconst url = '<your slack webhook>';\n\nslack(\"Testing\", url, function(err) {\n     if(err) {\n         console.log(\"Send failed: \", err)\n     } else {\n         console.log(\"Success\")\n     }\n})\n```\n#### Posting attachments\n\n```\nconst slack = require('post-to-slack')\nconst url = '<your slack webhook>';\nconst formatter = require('format-json')\n\nvar json = {\n   \"My\":{\n      \"JSON\":\"object\"\n   }\n}\n\nvar formattedJson = formatter.plain(json)\n\nslack({\n    text: 'A failed event has been removed from the queue',\n    attachments: [{\n        fallback: JSON.stringify(json),\n        text: formattedJson\n    }]\n}, url, function(err) {\n    if(err) {\n        console.log(\"Send failed: \", err)\n    } else {\n        console.log(\"Success\")\n    }\n})\n\n```\n\nSee slack documentation for more information on sending attachments at https://api.slack.com/incoming-webhooks\n","readmeFilename":"README.md"}