Skip to content

proxy-cheap/proxycheap-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proxycheap.js

axios

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

Create an API key here.

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

const client = new Client("API_KEY", "API_SECRET");

client.balance().then((data) => console.log(data.balance));

//OR

const myFunc = async () => {
    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