Skip to content

Latest commit

 

History

History

nodejs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

🏠 Main Repository 🏠

Disclaimer

If you want to continue development with Node.js, we highly recommend reading their documentation.

Prerequisites

To run the following code example, you'll need Node.js and the Axios HTTP client:

You should also have a Smartproxy account with access to the dashboard to get your credentials and endpoint information.

Installation

Once you have the prerequisites installed, follow these steps to set up your project:

  1. Using the Command Prompt/Terminal, create your project directory using the mkdir node_example command.
  2. Navigate to your project folder using the cd node_example command.
  3. Copy the code directly from the above or execute the following command to download the proxy setup example file:

HTTP(s): curl https://raw.githubusercontent.com/Smartproxy/Smartproxy/master/nodejs/node.js > node.js

SOCKS5: curl https://raw.githubusercontent.com/Smartproxy/Smartproxy/master/nodejs/node.js > nodesocks5h.js

curl smartproxy node.js code sample

  1. You should see a new file named node.js in your project folder. Open it using a code editor of your choice.

  2. To run this example, set your username, password, and endpoint information you'd like to use and enter them in the following sections of the code:

smartproxy node.js proxy username password authentication

Usage

To execute the Node.js example, simply run node node.js.

You should see an IP address in the console window if everything was set up correctly:

smartproxy successful node.js connection

Need help?

Email - sales@smartproxy.com

Live chat 24/7

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy