proxycheap.js

axios cheerio

GitHub stars npm

proxycheap.js is a Node.js module that allows you to easily interact with the proxy-cheap API.

• Promise based

• Performant

• 100% coverage of the proxy-cheap API

Installation

• Download NodeJS and get NPM

With GitHub :

• Download the project or clone it

• Go to the proxycheap.js folder and do npm install

• Require the client.js

With NPM :

• Download the project

• Do npm install proxycheap.js

• Require the library

Documentation

See the API documentation See the changelog

Example usage

The library can be used in both CommonJS and ES Modules

Using the library – API

const { Client } = require("proxycheap.js");
//OR
import { Client } from "proxycheap.js";

const client = new Client();

client.login("PHPSESSID").then((data) => {
    client.balance().then((balance) => console.log(balance));
});

//OR

const myFunc = async () => {
    await client.login("PHPSESSID");
    const balance = await client.balance();
    console.log(balance);
};

myFunc();

The library is async, be sure to use async functions or .then()

Credits

proxy-cheap

Copyright

See the license

GitHub

View Github