Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@flowko/wh-wrapper
Advanced tools
wh-wrapper is a robust and developer-friendly wrapper library for the WhatsApp Cloud API, meticulously crafted to streamline the process of building powerful and feature-rich WhatsApp bots. π€ With this library, you can seamlessly integrate WhatsApp messaging capabilities into your applications, unlocking a world of possibilities for engaging with your users. π¬
Lightning-fast: β‘ Leveraging modern JavaScript and optimized performance, wh-wrapper ensures blazing-fast message delivery and processing.
Seamless Messaging: π¨ Send and receive messages with ease, supporting rich media attachments, interactive buttons, and more.
Webhook Support: π£ Receive real-time updates and incoming messages through webhooks, enabling instant responsiveness.
TypeScript Friendly: π¦Ύ Enjoy the benefits of type safety and better tooling with comprehensive TypeScript support.
Template Management: ποΈ Create and manage reusable message templates for consistent and streamlined communication.
Comprehensive Documentation: π Get up and running quickly with detailed guides, examples, and extensive API documentation.
You can install wh-wrapper using npm or your preferred package manager:
npm install wh-wrapper
Initialize a new WhatsApp client instance and start sending and receiving messages:
import Client from 'wh-wrapper';
// or if using require:
// const Client = require('wh-wrapper');
const wh = new Client(phoneID, token);
wh.on('messages', async (message) => {
console.log(message); // Handle incoming messages here
});
const messageId = await wh.sendMessage(recipientPhoneNumber, 'Hello, World!');
import Client from 'wh-wrapper';
// or if using require:
// const Client = require('wh-wrapper');
const verifyToken = 'your_verify_token';
const wh = new Client(phoneID, token, verifyToken);
wh.on('messages', async (message) => {
console.log(message); // Handle incoming messages here
});
wh.on("statuses", async (status) => {
console.log(status); // Handle incoming statuses here
});
For more detailed instructions and advanced usage, please refer to the documentation. π
wh-wrapper is licensed under the MIT License.
Contributions are welcome! π If you find any issues or have ideas for improvements, please open an issue or submit a pull request. For major changes, it's recommended to discuss them first by creating an issue.
Please note that wh-wrapper is under active development, and breaking changes may be introduced as new features and improvements are implemented. However, the library is already usable and comes with comprehensive documentation (which is also a work in progress). π¨
--- Made with β€οΈ and π¨ by Elhanan
FAQs
JavaScript wrapper for the WhatsApp Cloud API
We found that @flowko/wh-wrapper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.