Socket
Socket
Sign inDemoInstall

ispapi-apiconnector

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ispapi-apiconnector - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

2

package.json
{
"name": "ispapi-apiconnector",
"description": "1API API Connector for node.js",
"version": "2.0.0",
"version": "2.1.0",
"author": {

@@ -6,0 +6,0 @@ "name": "Kai Schwarz",

@@ -14,3 +14,4 @@ # ISPAPI-APICONNECTOR

var apiconnector = require('ispapi-connector')
, api = apiconnector.Client();
, api = apiconnector.Client()
, c;

@@ -33,4 +34,4 @@ //optional: set client remote address including remote port, e.g.:

//request result of an api command
api.request({
//create connection instance to work with
c = api.createConnection({
COMMAND : "StatusUser"

@@ -40,3 +41,3 @@ });

//output api response when ready
api.once("response", function(r){
c.once("response", function(r){
console.dir(r.as_hash());

@@ -46,5 +47,9 @@ });

//react on error events
api.on("error", function(e){
c.on("error", function(e){
console.log(e.message);
});
//perform the request
c.request();
```

@@ -51,0 +56,0 @@

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