{"_id":"@apiclient.xyz/slack","_rev":"1-6ff3e5b705f9b11b5353e498df5a724e","name":"@apiclient.xyz/slack","dist-tags":{"latest":"3.0.9"},"versions":{"3.0.7":{"name":"@apiclient.xyz/slack","version":"3.0.7","private":false,"description":"slack api abstraction for the mojo.io ecosystem","main":"dist_ts/index.js","typings":"dist_ts/index.d.ts","author":{"name":"Lossless GmbH"},"license":"MIT","devDependencies":{"@git.zone/tsbuild":"^2.1.25","@git.zone/tsrun":"^1.2.17","@git.zone/tstest":"^1.0.54","@push.rocks/qenv":"^6.0.4","@push.rocks/tapbundle":"^5.0.15","@types/node":"^20.11.6"},"dependencies":{"@push.rocks/smartpromise":"^4.0.3","@push.rocks/smartrequest":"^2.0.21"},"repository":{"type":"git","url":"git+https://gitlab.com/apiclient.xyz/slack.git"},"bugs":{"url":"https://gitlab.com/apiclient.xyz/slack/issues"},"homepage":"https://gitlab.com/apiclient.xyz/slack#readme","type":"module","browserslist":["last 1 chrome versions"],"scripts":{"test":"tstest test/","build":"tsbuild --web","buildDocs":"tsdoc"},"_id":"@apiclient.xyz/slack@3.0.7","_integrity":"sha512-PFvfcXH6EYN7VXuC37II1pZQcNJHe5L8SYSu7y7ioEgk1stq1/a705n5CFzfxLp9H0L5y7ccIAx/N44CqUT1Fw==","_resolved":"/tmp/802f959a2d6a139f39caa9001734821e/apiclient.xyz-slack-3.0.7.tgz","_from":"file:apiclient.xyz-slack-3.0.7.tgz","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-PFvfcXH6EYN7VXuC37II1pZQcNJHe5L8SYSu7y7ioEgk1stq1/a705n5CFzfxLp9H0L5y7ccIAx/N44CqUT1Fw==","shasum":"05ef4538d648761e7677a5673abbc2bee3dcc370","tarball":"https://registry.npmjs.org/@apiclient.xyz/slack/-/slack-3.0.7.tgz","fileCount":21,"unpackedSize":23829,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC63ImC9ryLt/0deMT5/3Xm2yet5h7/xOwGRYV1TX+24wIhAKwv9qgPAtZGLWAc0oM85+fSIvZJxbFgXkmJ5J/D1ecO"}]},"_npmUser":{"name":"lossless","email":"hello@lossless.com"},"directories":{},"maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slack_3.0.7_1706136797637_0.7871337605569098"},"_hasShrinkwrap":false},"3.0.9":{"name":"@apiclient.xyz/slack","version":"3.0.9","private":false,"description":"slack api abstraction for the mojo.io ecosystem","main":"dist_ts/index.js","typings":"dist_ts/index.d.ts","author":{"name":"Lossless GmbH"},"license":"MIT","devDependencies":{"@git.zone/tsbuild":"^2.1.25","@git.zone/tsrun":"^1.2.17","@git.zone/tstest":"^1.0.54","@push.rocks/qenv":"^6.0.4","@push.rocks/tapbundle":"^5.0.15","@types/node":"^20.11.6","typescript":"^5.3.3"},"dependencies":{"@push.rocks/smartpromise":"^4.0.3","@push.rocks/smartrequest":"^2.0.21"},"repository":{"type":"git","url":"git+https://gitlab.com/apiclient.xyz/slack.git"},"bugs":{"url":"https://gitlab.com/apiclient.xyz/slack/issues"},"homepage":"https://gitlab.com/apiclient.xyz/slack#readme","type":"module","scripts":{"test":"tstest test/","build":"tsbuild --web"},"_id":"@apiclient.xyz/slack@3.0.9","_integrity":"sha512-2rUbLNvXwQLxxA0tm26BFk1+jyrukZmw/Fbc3dbQ1lpsaVp+8XoASeEyqrkAWCLxrHJEsJsyMJogRZZzVHqdjw==","_resolved":"/tmp/29f59db1c77a8fd22757e8649ae2a573/apiclient.xyz-slack-3.0.9.tgz","_from":"file:apiclient.xyz-slack-3.0.9.tgz","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-2rUbLNvXwQLxxA0tm26BFk1+jyrukZmw/Fbc3dbQ1lpsaVp+8XoASeEyqrkAWCLxrHJEsJsyMJogRZZzVHqdjw==","shasum":"8882c86d93c52421c91b51e9e9f225ce6fa8a0bf","tarball":"https://registry.npmjs.org/@apiclient.xyz/slack/-/slack-3.0.9.tgz","fileCount":21,"unpackedSize":23547,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBJEMEu9kkwY99S8TkW5vbDFyIBPp2j9MZHsEe0sH/nfAiAJqLvaeNOor5rfsi6KNTT+Cv3vIygCShjQi8CWGKod9A=="}]},"_npmUser":{"name":"lossless","email":"hello@lossless.com"},"directories":{},"maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slack_3.0.9_1706137820864_0.7964723093703072"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-24T22:53:17.556Z","3.0.7":"2024-01-24T22:53:17.827Z","modified":"2024-01-24T23:10:21.245Z","3.0.9":"2024-01-24T23:10:21.061Z"},"maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"description":"slack api abstraction for the mojo.io ecosystem","homepage":"https://gitlab.com/apiclient.xyz/slack#readme","repository":{"type":"git","url":"git+https://gitlab.com/apiclient.xyz/slack.git"},"author":{"name":"Lossless GmbH"},"bugs":{"url":"https://gitlab.com/apiclient.xyz/slack/issues"},"license":"MIT","readme":"# @mojoio/slack\nslack api abstraction for the mojo.io ecosystem\n\n## Availabililty and Links\n* [npmjs.org (npm package)](https://www.npmjs.com/package/@mojoio/slack)\n* [gitlab.com (source)](https://gitlab.com/mojoio/slack)\n* [github.com (source mirror)](https://github.com/mojoio/slack)\n* [docs (typedoc)](https://mojoio.gitlab.io/slack/)\n\n## Status for master\n[![build status](https://gitlab.com/mojoio/slack/badges/master/build.svg)](https://gitlab.com/mojoio/slack/commits/master)\n[![coverage report](https://gitlab.com/mojoio/slack/badges/master/coverage.svg)](https://gitlab.com/mojoio/slack/commits/master)\n[![npm downloads per month](https://img.shields.io/npm/dm/@mojoio/slack.svg)](https://www.npmjs.com/package/@mojoio/slack)\n[![Known Vulnerabilities](https://snyk.io/test/npm/@mojoio/slack/badge.svg)](https://snyk.io/test/npm/@mojoio/slack)\n[![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)\n[![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)\n[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/)\n\n## Usage\n\nUse TypeScript for best in class instellisense.\n\n```javascript\nimport * as slackme from 'slackme'\n\n// First setup the hook\nconst mySlackme = new Slackme('https://some.slack.webhook.url')\nmySlackme.sendMessage:{{\n  // MessageOptions here\n}, 'myAwesomeChannel'}\n```\n\nThe message interface follows [Slack's docs (click here)](https://api.slack.com/docs/message-formatting) and looks like this:\n\n```javascript\ninterface IAttachmentField {\n  title: string\n  value: string\n  short?: boolean\n}\n\ninterface IMessageOptions {\n  /**\n   * \"Required plain-text summary of the attachment.\"\n   */\n  fallback?: string,\n  /**\n   * a side color\n   */\n  color?: string,\n  /**\n   * a message to show above\n   */\n  pretext?: string,\n  /**\n   * author name of the attachment\n   */\n  author_name?: string,\n  /**\n   * a link to the author\n   */\n  author_link?: string,\n  /**\n   * a string to the author\n   */\n  author_icon?: string,\n  /**\n   * a title for the attachment\n   */\n  title?: string,\n  /**\n   * a link for the title\n   */\n  title_link?: string,\n  /**\n   * the main text of the message\n   */\n  text?: string,\n  fields?: IAttachmentField[],\n  image_url?: string,\n  thumb_url?: string,\n  footer?: string,\n  footer_icon?: string,\n  /**\n   * timestamp as epoch time\n   */\n  ts?: number\n}\n```\n\nAlternatively, there is the option of specifying a SlackMessage class\n\n```javascript\nconst mySlackMessage = new SlackMessage({ /* message options here } */, mySlackme)\nmySlackMessage.title = 'new Title' // modify message options\nmySlackMessage.sendToRoom('general')\nmySlackMessage.title = 'another Title'\nmySlackMessage.sendToRoom('anotherroom')\n```\n\nFor further information read the linked docs at the top of this readme.\n\n> MIT licensed | **&copy;** [Lossless GmbH](https://lossless.gmbh)\n| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)\n\n[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)\n","readmeFilename":"readme.md"}