Socket
Book a DemoInstallSign in
Socket

@metapasshq/msngr

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metapasshq/msngr

a tiny utility to post to user-provided webhooks without worrying about platforms built for [@metapass](https://github.com/metapass)

0.1.4
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

@metapasshq/msngr

a tiny utility to post to user-provided webhooks without worrying about platforms built for @metapass

platforms supported:

  • slack
  • discord
  • telegram

won't be adding new platforms myself because of current commitments but feel free to create PR with a working test to get it merged :)

1. install:

npm install @metapasshq/msngr

or

yarn install @metapasshq/msngr

2. use

// import
import { send } from "@metapasshq/msngr";

// declaring webhook
const webhook = "https://discord.com/api/webhooks/987654321/abcdefghijklmnopqrstuvwxyz";

// send
await send(webhook, "Hello World!");

contributing:

feel free to open PRs for any new feature/bug fixes

some things on the top of my head:

  • integrate testing into workflows
  • support for rich embeds (maybe?)
  • support for attachments (maybe?)

Keywords

webhooks

FAQs

Package last updated on 01 Oct 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.