{"_id":"@aschlean/slack-wrap","_rev":"2-94f868e01c35676b6c1872e506fcac13","name":"@aschlean/slack-wrap","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@aschlean/slack-wrap","version":"1.0.0","keywords":["slack","bot","typescript","wrapper","bolt","slack-bot","messaging"],"author":{"name":"aschlean"},"license":"MIT","_id":"@aschlean/slack-wrap@1.0.0","maintainers":[{"name":"aschlean","email":"antoni@gmitruk.com"}],"homepage":"https://github.com/aschlean/slack-wrap#readme","bugs":{"url":"https://github.com/aschlean/slack-wrap/issues"},"dist":{"shasum":"d63ab1fb725eb1ecf95cc68b1ab69d33695f036a","tarball":"https://registry.npmjs.org/@aschlean/slack-wrap/-/slack-wrap-1.0.0.tgz","fileCount":9,"integrity":"sha512-dzKxqBPqCmYpnf2vQqJNrHalkylDuNJPtDypcpkpLY+h0fbV0Ik8djTIY52+r/FN6zuBo9Op27vOsoo3qx77fA==","signatures":[{"sig":"MEUCIQC/zziqZ8cnuPYGjZdex3je88ceCwiQ2cfoX7FYcYSFWgIgJpe1QGyP3GzOSVqpHotZvUqEIEH0mawuNGg9oldRaUQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31258},"main":"dist/SlackWrapper.js","types":"dist/SlackWrapper.d.ts","scripts":{"dev":"ts-node src/example.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsc","start":"node dist/example.js","prepare":"npm run build"},"_npmUser":{"name":"aschlean","email":"antoni@gmitruk.com"},"repository":{"url":"git+https://github.com/aschlean/slack-wrap.git","type":"git"},"_npmVersion":"10.8.2","description":"A TypeScript wrapper around Slack's Bolt.js framework that simplifies common operations","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@slack/bolt":"^3.17.1"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.11.24"},"peerDependencies":{"@slack/bolt":"^3.17.1"},"_npmOperationalInternal":{"tmp":"tmp/slack-wrap_1.0.0_1737150700649_0.422422549084442","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aschlean/slack-wrap","version":"1.0.1","keywords":["slack","bot","typescript","wrapper","bolt","slack-bot","messaging"],"author":{"name":"aschlean"},"license":"MIT","_id":"@aschlean/slack-wrap@1.0.1","maintainers":[{"name":"aschlean","email":"antoni@gmitruk.com"}],"homepage":"https://github.com/aschlean/slack-wrap#readme","bugs":{"url":"https://github.com/aschlean/slack-wrap/issues"},"dist":{"shasum":"d1f0a2a6515eda2ad0df01c59cfbfe87d521c72e","tarball":"https://registry.npmjs.org/@aschlean/slack-wrap/-/slack-wrap-1.0.1.tgz","fileCount":9,"integrity":"sha512-VMq8WOCt2J7DI6CngHlIgu2nZqoTfFmeEvwAPPcurd1v+J3P1CB5Qmjb34cQB8Q6QCTzvqGZCHWXQct4Ek3sqw==","signatures":[{"sig":"MEYCIQCtNL+HQjFkywf1QQYjx3BxdqL0ZbGlgt4SbneZWuvbrAIhAN4sd+6VXFTHm6XG0OScoWOtRYFOPMkShQs4fot9RPRC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31413},"main":"dist/SlackWrapper.js","types":"dist/SlackWrapper.d.ts","scripts":{"dev":"ts-node src/example.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsc","start":"node dist/example.js","prepare":"npm run build"},"_npmUser":{"name":"aschlean","email":"antoni@gmitruk.com"},"repository":{"url":"git+https://github.com/aschlean/slack-wrap.git","type":"git"},"_npmVersion":"10.8.2","description":"A TypeScript wrapper around Slack's Bolt.js framework that simplifies common operations","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@slack/bolt":"^3.17.1"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.11.24"},"peerDependencies":{"@slack/bolt":"^3.17.1"},"_npmOperationalInternal":{"tmp":"tmp/slack-wrap_1.0.1_1737151004423_0.6227647744411835","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@aschlean/slack-wrap","version":"1.0.2","description":"A TypeScript wrapper around Slack's Bolt.js framework that simplifies common operations","main":"dist/SlackWrapper.js","types":"dist/SlackWrapper.d.ts","scripts":{"build":"tsc","prepare":"npm run build","start":"node dist/example.js","dev":"ts-node src/example.ts","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["slack","bot","typescript","wrapper","bolt","slack-bot","messaging"],"author":{"name":"aschlean"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/aschlean/slack-wrap.git"},"bugs":{"url":"https://github.com/aschlean/slack-wrap/issues"},"homepage":"https://github.com/aschlean/slack-wrap#readme","dependencies":{"@slack/bolt":"^4.2.0"},"devDependencies":{"@types/node":"^20.11.24","dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.3.3"},"peerDependencies":{"@slack/bolt":"^4.2.0"},"_id":"@aschlean/slack-wrap@1.0.2","gitHead":"e6b361e11835e31ea05c83da45f2bb4ba7c6814e","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-9jXOUEDBzVcuW86XggzJjr1TAbauLfgolDeIRCul1es60+8oGrJkHDNPQTgF5xD7uSXVe43WrsLi/HXPBLwUAw==","shasum":"6adaa1acd437068bd1f5e6b4c9a2c390409a349b","tarball":"https://registry.npmjs.org/@aschlean/slack-wrap/-/slack-wrap-1.0.2.tgz","fileCount":17,"unpackedSize":21502,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGCzMlGHqPAMHeXVFthIwPghyUnkcVj/G3kbWVeV6ZSCAiAIp8xMKalTulax9/uu7Mdn1Bk8eTTLrkOSVOmRnZT3qg=="}]},"_npmUser":{"name":"aschlean","email":"antoni@gmitruk.com"},"directories":{},"maintainers":[{"name":"aschlean","email":"antoni@gmitruk.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/slack-wrap_1.0.2_1737155335478_0.706637806776671"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-17T21:51:40.555Z","modified":"2025-01-17T23:08:55.848Z","1.0.0":"2025-01-17T21:51:40.847Z","1.0.1":"2025-01-17T21:56:44.748Z","1.0.2":"2025-01-17T23:08:55.693Z"},"bugs":{"url":"https://github.com/aschlean/slack-wrap/issues"},"author":{"name":"aschlean"},"license":"MIT","homepage":"https://github.com/aschlean/slack-wrap#readme","keywords":["slack","bot","typescript","wrapper","bolt","slack-bot","messaging"],"repository":{"type":"git","url":"git+https://github.com/aschlean/slack-wrap.git"},"description":"A TypeScript wrapper around Slack's Bolt.js framework that simplifies common operations","maintainers":[{"name":"aschlean","email":"antoni@gmitruk.com"}],"readme":"# Slack Wrapper\n\nA TypeScript wrapper around Slack's Bolt.js framework that simplifies message sending and monitoring capabilities.\n\n## Setup\n\n1. Install dependencies:\n```bash\nnpm install @aschlean/slack-wrap\n```\n\n2. Set up your Slack app and get the following credentials:\n   - Bot Token (`SLACK_BOT_TOKEN`)\n   - Signing Secret (`SLACK_SIGNING_SECRET`)\n   - App Token (`SLACK_APP_TOKEN`)\n\n3. Set up environment variables with your Slack credentials:\n```bash\nexport SLACK_BOT_TOKEN='xoxb-your-token'\nexport SLACK_SIGNING_SECRET='your-signing-secret'\nexport SLACK_APP_TOKEN='xapp-your-app-token'\n```\n\n## Usage\n\n```typescript\nimport { SlackWrapper } from '@aschlean/slack-wrap';\n\nconst wrapper = new SlackWrapper({\n    token: process.env.SLACK_BOT_TOKEN!,\n    signingSecret: process.env.SLACK_SIGNING_SECRET!,\n    appToken: process.env.SLACK_APP_TOKEN!\n});\n\nwrapper.onMessage(async (message) => {\n    const userInfo = await wrapper.getUserInfo(message.user);\n    await wrapper.replyToMessage(message, `Hello ${userInfo.realName}!`);\n});\n\nawait wrapper.start();\n```\n\n## Features\n\n- Send messages to channels and threads\n- Monitor incoming messages\n- Get user information\n- Register and remove message handlers\n- TypeScript support with full type definitions\n\n## Requirements\n\n- Node.js 14+\n- TypeScript 4+\n- Slack App with appropriate permissions:\n  - `chat:write` (for sending messages)\n  - `channels:history` (for reading public channels)\n  - `groups:history` (for reading private channels)\n  - `im:history` (for reading direct messages)\n  - `mpim:history` (for reading group DMs)\n  - `users:read` (for fetching user information) ","readmeFilename":"README.md"}