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

wh-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wh-wrapper

JavaScript wrapper for the WhatsApp Cloud API

  • 0.0.13
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-55.56%
Maintainers
1
Weekly downloads
 
Created
Source

wh-wrapper

Please Note: This library is currently under active development and the code is unfinished/unstructured. Breaking changes should be expected in upcoming days as the library evolves.

wh-wrapper is a library that is being developed to wrap and simplify access to the WhatsApp Cloud API from JavaScript/TypeScript applications.

installation

npm i wh-wrapper

Setup and Usage

import Client from "wh-wrapper";

const wh = new Client(phoneNumberId, TOKEN, verifyToken);

wh.on("messages", async (message) => {
  console.log(message);
  await message.markMessageAsRead();
  await message.replyText("Welcome from wh-wrapper");
});

wh.on("statuses", async (status) => {
  console.log(status);
});

Current Status:

The code for this library was originally some unpublished wrapper code I had written for my own use. I have now open-sourced it to build out into a full-fledged library for public use.

Over the next few days, I will be restructuring the code and organizing it properly as the library takes shape. Please excuse any messiness or lack of coherence for now!

Contributing

If you'd like to contribute to wh-wrapper as the code takes form, pull requests are welcome! Just be aware the structure and APIs may change rapidly in the short term.

Support

If you have any questions, feel free to open a GitHub issue!

Keywords

FAQs

Package last updated on 18 Mar 2024

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