{"_id":"@brandon_moov/newman-reporter-slack-msg","_rev":"1-c28a3f7cb6080abfdb1cb86489ad74de","name":"@brandon_moov/newman-reporter-slack-msg","dist-tags":{"latest":"1.3.3"},"versions":{"1.3.3":{"name":"@brandon_moov/newman-reporter-slack-msg","version":"1.3.3","description":"newman reporter to slack","main":"index.js","scripts":{"lint":"eslint index/js","test":"jest","prepack":"npm run test"},"repository":{"type":"git","url":"git+https://github.com/moovfinancial/newman-reporter-slackmsg.git"},"keywords":["newman","postman","slack","newman reporter","custom newman reporter"],"author":{"name":"Jack Chaw"},"license":"ISC","bugs":{"url":"https://github.com/moovfinancial/newman-reporter-slackmsg/issues"},"homepage":"https://github.com/moovfinancial/newman-reporter-slackmsg#readme","dependencies":{"@types/node":"^14.0.13","axios":"^0.21.1","esm":"^3.2.25","jsonminify":"^0.4.1","pretty-ms":"^7.0.0"},"devDependencies":{"eslint":"^7.7.0","jest":"^26.0.1"},"gitHead":"cf4147f901a1e26b15120e6f188bb2e18b7c2418","_id":"@brandon_moov/newman-reporter-slack-msg@1.3.3","_nodeVersion":"12.9.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-e1E/VF9s+SALFBxko/gWeDP+39+UEo/QwmeCl4iM6hFRiH1pPGTPgvNNf+XAT6VWUPKGIQ8rhCT0BehIqDC9HQ==","shasum":"818bc4feaa37e7ac831b46e1a0d61549d4b687cd","tarball":"https://registry.npmjs.org/@brandon_moov/newman-reporter-slack-msg/-/newman-reporter-slack-msg-1.3.3.tgz","fileCount":13,"unpackedSize":212901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWDIPCRA9TVsSAnZWagAAYXIQAIKcIQKrM6t9v1OuZtyb\n9Z2E8jYAWGhNmrzmhz+1D96SknJTB8aQYXwUjOP7yDf8osbfyeVBMd+xDhPM\nT8crp5lkx5IA09NSlJVHkxZrmtQUSJnOBZNL7yYC81rqVXmAd5YTvA1utwAj\ndwcM+KWY3zusSPGvON8ntEKFas8JSm0JVx7N+90MwW+n49F5uV/8vnUmG7ku\nrm0fmxGZO9wmS1UrlIhHRyJmWpwesN8ySgdjaUfkg/RaGqG0cwNa7a3mthyg\nXol5mtUOxT3g7RmD6UYakgo1uo+uumKU/FJ+5D0cY1XRHf0PHjrp5GT/ZrEA\njoJIOMW5lioUa7vCFOC+oNNsLWFvDxTd2rfVRKnrYdR0HAWwXZia9r6atzYp\nJgvA4kYM7MUUVwo/uTsQZ/9NaXxes9GweipU5HBsL1rcsnye1D8k7YRyr1JD\nJJur5Tm37G+dwvcBvPb6A8onF8SqUNYXmriWRq92HJHfsQH0xMfIHasB6HV+\nImQcm3W1wk8jqNsWVsm+XA+kDzLB1m/BMp4gz6+u0CEwFsdH1Ij1FqXnMS8y\nusf0TppGYNfLK0UKuC88/+7mKJdsPOynmroX1S/SH5Ex156HEmHKMAjNCOhH\nQamkZeXI/SM1KCwdIG0kIb6mBLIEGoHF/YsHpBKG7hX4MQAIX6ccPiNJMBdP\n4PGS\r\n=lCwb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAOkvwUXYLBoE3v2UhBtjtVMHB/lENOneeNB2nKZQHMpAiA2zSUYr8Jk+nR/hzWzaUCbPSnPKVFIsuovPJv4S11ioQ=="}]},"_npmUser":{"name":"brandon_moov","email":"brandon@moov.io"},"directories":{},"maintainers":[{"name":"brandon_moov","email":"brandon@moov.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/newman-reporter-slack-msg_1.3.3_1616392719122_0.536120471493976"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-22T05:58:39.060Z","1.3.3":"2021-03-22T05:58:39.334Z","modified":"2022-04-04T20:25:14.814Z"},"maintainers":[{"name":"brandon_moov","email":"brandon@moov.io"}],"description":"newman reporter to slack","homepage":"https://github.com/moovfinancial/newman-reporter-slackmsg#readme","keywords":["newman","postman","slack","newman reporter","custom newman reporter"],"repository":{"type":"git","url":"git+https://github.com/moovfinancial/newman-reporter-slackmsg.git"},"author":{"name":"Jack Chaw"},"bugs":{"url":"https://github.com/moovfinancial/newman-reporter-slackmsg/issues"},"license":"ISC","readme":"# newman-reporter-slackmsg\n\nCustom [Newman](https://github.com/postmanlabs/newman) reporter to send message to [Slack](https://slack.com/)\n\n<img src=\"https://github.com/jackcoded/newman-reporter-slackmsg/blob/master/testResults.png?raw=true\" width=\"450\"  height=\"550\">\n\n## Before you get started\n- Install [Newman](https://github.com/postmanlabs/newman) ``` $ npm run i -g newman ```\n- Create a [Slack incoming webhook url](https://api.slack.com/messaging/webhooks)\nor\n- Create a [Slack bot to send to channel or user dynamically](https://api.slack.com/messaging/sending)\n\n## Installation\n ```CLI\n npm i -g newman-reporter-slackmsg\n ```\n\n## Usage\n```CLI\n newman run <collectionFile> -e <environmentFile> --suppress-exit-code -r slackmsg --reporter-slackmsg-webhookurl '<webhookurl>'\n```\n\n## Usage with channel override bot\n```CLI\n newman run <collectionFile> -e <environmentFile> --suppress-exit-code -r slackmsg --reporter-slackmsg-webhookurl '<https://slack.com/api/chat.postMessage>' --reporter-slackmsg-token '<bearer token>' --reporter-slackmsg-chanel '<channel or userid>'\n```\n\n## Reporter Options Optionals\n```\n --reporter-slackmsg-messageSize '<messageSize>' e.g 150\n --reporter-slackmsg-token '<bearer token>' e.g xoxb-XXXXXXXXXXXX-TTTTTTTTTTTTTT\n --reporter-slackmsg-channel '<channel>' e.g #general\n --reporter-slackmsg-failuresChannel '<channel>' e.g. #alerts\n --reporter-slackmsg-collection '<collectionName> e.g test.json\n --reporter-slackmsg-environment '<environmentName> e.g env.json\n\n```\n\n\n## Reporter Options\n**webhookurl** \nWebhook URL to point to the slack api where results are published\n\n**collection** \nOption to add the name of collection file onto the message\n\n**environment**\nOption to add the name of environment file onto the message\n\n**messageSize**\nOption to change the message size, defaulted to 100\n\n**token**\nOption to use bearer token for slack bots for channel override\n\n**channel**\nOption to select channel or user receive the result\n\n**failuresChannel**\nOption to select channel or user to receive failures","readmeFilename":"README.md"}