Socket
Book a DemoInstallSign in
Socket

@geshan/axrio

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geshan/axrio

A mashup of Axios and Cheerio

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
11
-8.33%
Maintainers
1
Weekly downloads
 
Created
Source

axrio

A package that combines Axios and Cheerio to get a web page.

Quick usage example

First install the package with npm like below:

npm install @geshan/axrio

Then you can start using it like below:

const axrio = require('@geshan/axrio');

(async () => {
  try {
    const $ = await axrio.getPage('https://google.com');
    const links = $('a');
    console.log(`Link text: ${$(links[0]).text()}`);
    console.log(`Link Href: ${$(links[0]).attr().href}`);
  } catch (e) {
    console.log(`Error `, e);
  }
})();

Keywords

axios

FAQs

Package last updated on 21 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts