Novelty Polygonal Mathematics
    Have ideas to improve npm?Join in the discussion! »

    @geshan/axrio

    1.0.1 • Public • Published

    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);
      }
    })();
    
    

    Install

    npm i @geshan/axrio

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.85 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar