proxycheap.js
v2.2.0
Published
A JavaScript library for interacting with the proxy-cheap API
Downloads
192
Readme
proxycheap.js
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
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
Copyright
See the license