npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

proxidoor

v1.0.3

Published

proxidoor helps you make HTTP requests through a rotating proxy, you can use it for services such as web scraping, web crawling and more.

Downloads

5

Readme

Proxidoor

N|Solid

Build Status

Proxidoor helps you make HTTP requests through a rotating proxy, you can use it for services such as web scraping, web crawling and more.

Proxidoor workflows :

  • Search for instant proxies from the internet and scrape it.
  • Filter the valid proxies and pass them to the http client.
  • ✨Magic ✨ that's it , you just make a http request throw rotating proxy for free.

Features

  • Free and Easy to use, just one line of code.
  • Provide the html code as result.
  • Flexible for changing the http request headings.

Proxidoor uses different technologies to achieve its purpose :

Proxidoor uses a number of open source projects to work properly:

  • cheerio
  • https-proxy-agent
  • node-fetch
  • proxy-check

Installation

Proxidoor requires Node.js v16+ to run.

npm i proxidoor

How to code using proxidoor :

const {call} = require('proxidoor');

call('https://www.iplocation.net/find-ip-address')
    .then(res => console.log(res))
    .catch(err => console.log(err.message));

The output is an JSON object :

{
  proxy: { protocol: 'elite proxy', host: '5.189.184.6', port: '80' },
  success: true,
  status: 200,
  html: '<!DOCTYPE html>\n' +
    '<html lang="en">\n' +
    '    <head>\n' +
    '        <title>What is my IP address?</title>\n'... 30892 more characters
}

Headings

Simple Post

const {call} = require('proxidoor');

call('https://www.iplocation.net/find-ip-address',{
        method: 'POST',
        body: 'a=1'
    })
    .then(res => console.log(res))
    .catch(err => console.log(err.message));

Post with JSON

const {call} = require('proxidoor');

const body = {a: 1};
call('https://www.iplocation.net/find-ip-address',{
        method: 'POST',
        body: JSON.stringify(body),
	    headers: {'Content-Type': 'application/json'}
    })
    .then(res => console.log(res))
    .catch(err => console.log(err.message));

Post with form parameters

Note: The Content-Type header is only set automatically to x-www-form-urlencoded when an instance of URLSearchParams is given as such.

const {call} = require('proxidoor');

const params = new URLSearchParams();
params.append('a', 1);
call('https://www.iplocation.net/find-ip-address',{
        method: 'POST',
        body: params
    })
    .then(res => console.log(res))
    .catch(err => console.log(err.message));

Thank you for reaching to this point, please feel free to contact me throw an email [email protected] if you want me to add some features to proxidoor.