New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-wa

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-wa - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "node-wa",
"description": "Node Whatsapp API Client",
"version": "0.1.0",
"version": "0.1.1",
"author": {

@@ -6,0 +6,0 @@ "name": "Azri Jamil",

@@ -1,31 +0,21 @@

node-wa
=======
# Node.js Whatsapp API Client
Node.js whatsapp access
Loosely based on the WhatsAPI and Wazapp projects that you can find on github. Appears to work in all versions of Node from 0.2 to 0.8.
Loosely based on the WhatsAPI and Wazapp projects that you can find on github.
Thanks to vkotovv for the fix for login issues Aug 29!
Usage example:
Appears to work in all versions of Node from 0.2 to 0.8.
I don't know much about building node modules properly, so hopefully if anyone else finds this useful, they can
clean up some of the mess.
Good luck and enjoy.
Here's how I basically make it do something:
var waApi = require('testapi.js').waApi;
```js
var waApi = require('node-wa');
var wa = new waApi(userId, password, { displayName: 'Blade', debug: true });
```
Your userId is the Phone Number that you have registered with WA, and your password should be either your device's MAC ID (for iOS) duplicated then MD5'd, such as md5("AA:BB:CC:DD:EE:FFAA:BB:CC:DD:EE:FF"), or the reverse of your device's IMEI number, then MD5'd, such as md5(strrev(device imei)) for all other WA systems besides iOS.
It is an EventEmitter that will emit several events when things happen. You can call different functions within it to
cause different things to happen.
It is an EventEmitter that will emit several events when things happen. You can call different functions within it to cause different things to happen.
At this time, if someone sends you custom image data, it'll probably crash out, as it has no idea how to parse it.
Events:
### Events
* close: emitted when the connection to the server is closed

@@ -45,3 +35,3 @@ * loggedin: emitted when the client is actually logged into the server

Functions you can call:
### Functions

@@ -71,1 +61,4 @@ * sendTyping(jid) - inform server that you are typing

### Author & Credits
* Original Author - https://github.com/ericblade
* Thanks to vkotovv for the fix for login issues Aug 29!
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