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 🙏

© 2025 – Pkg Stats / Ryan Hefner

extractomundo

v1.0.1

Published

Extracts links from a url or html file and downloads each of them within a specified file location

Readme

Extractomundo

Description

A link search and download application. Extratomundo makes downloading all specified links from a given URL or HTML file super easy.

Installation

npm i extractomundo

Usage

Extractomundo comes in the following formats:

  • A module to require()
  • A Cli interface

Example

Modules

// Module 
const Emundo = require('extractomundo');
const props = {
    url: 'any-url',
    htmlFile: 'any-file',
    path: '../../downloads/', // Any file path
    selector: 'div > a:first-child', // CSS3 selectors that will search for your links
    range: [0, 50], 
    increment: 10,
    append: '&raw=1', // Example for force downloading dropbox links
}
const emundo = new Emundo(props);

emundo.links().then(res =>  console.log(res))// Prints out an array of links

emundo.download() // initiate file(s) download;

CLI

>>> extractomundo --help

extractomundo [command]

Commands:
  extractomundo url [url]        Current url from which links will be extracted.                            [aliases: u]
  extractomundo html [htmlFile]  Html file to process. Must be within the html folder.                      [aliases: h]

Options:
  -p, --path       Path to file from which to download. [Required in cli mode]                                  [string]
  -s, --selector   CSS3 selector rule for selecting links from page. [Required in cli mode]                     [string]
  -r, --range      Range to download links from.                                                                 [array]
  -i, --increment  The number of files to be downloaded at any given time. Defaults to 10.                      [number]
  -a, --append     String to append at the end of every url.                                                    [string]
      --help       Show help                                                                                   [boolean]
      --version    Show version number                                                                         [boolean]

API

props

Props define what and how the links are to be parsed and downloaded. There are 6 props that you need to take note of: | Props | Definition | | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | url | Current url from which links will be extracted. | | htmlFile | Html file to process. You must create a html folder within the root directory and add your html files there. For this field, just add the name of your html file and not including its path. Specifying a htmlFile will take priority over the url field | | path | Path to file from which to download. | | selector | CSS3 selector rule for selecting links from page. | | range | Range to download links from. (Eg. [10,20] downloads links from index 10 to 20) | | increment | The number of files to be downloaded at any given time. Defaults to 10. | | append | String to append at the end of every url. |

.links()

The link method returns an array of links from the url or html file.

.download()

The download method initiates the download sequence. See console for progress.