Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@synonymdev/blocktank-util-slack-client

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synonymdev/blocktank-util-slack-client

Blocktank Slack client

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
86
increased by1.18%
Maintainers
4
Weekly downloads
 
Created
Source

blocktank-util-slack-client

Client to interact with the blocktank-util-slack service.

Usage

Install

npm i @synonymdev/blocktank-util-slack-client

Send message

import { SlackClient } from '@synonymdev/blocktank-util-slack-client';

const client = new SlackClient('myConfiguredChannelName') // See service config for channel names.

await client.info('myTitle', 'myMessage') // Send message.

// Limit the message to be sent only once every 24 hours.
// This will help avoid spam.
await client.error('Couldnt read file', 'errorMessage', {
    key: 'fileReadKey',
    limitFor: {
        years: undefined,
        months: undefined,
        weeks: undefined,
        days: 1,
        hours: undefined,
        minutes: undefined,
        seconds: undefined,
    }
})

Test messages

Execute blocktank-util-slack-cli in the terminal to send test messages. *Install with npm i @synonymdev/blocktank-util-slack-client first.

Versioning

  1. Increase version in package.json.
  2. Add changes to CHANGELOG.md.
  3. Commit changes.
  4. Tag new version: git tag v0.1.0.
  5. Push tag git push origin v0.1.0.
  6. Build: npm run build.
  7. Publish to npm: npm publish.

FAQs

Package last updated on 01 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc