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

search-and-dl

v1.0.4

Published

Search the web and download video and audio

Downloads

4

Readme

Search and Download

A command-line app to easily search for and download videos and music.

Quickstart

Installation

Because of a weird quirk in the main dependency, youtube-dl-exec, the python command must be available on your machine (not py, not python3). If it isn't, bin-version-check-cli will throw an error, preventing you from installing anything in the first place. As far as I can tell, there's no easy solution to this, but I'd like to get it fixed soon. For fixes in the meantime, see Fixing the Python Thing.

Then, all you need to do is run

npm i search-and-dl -g

and you can run sad in the command line from anywhere.

Example Usage

  • sad -s "bruh sound effect" -p youtube will download the top result for "bruh sound effect" from youtube, as a video.
  • sad -s "bruh sound effect" -p youtube -a does the same as above, but only saves an audio file.
  • sad -s "bruh sound effect" -p youtube -t will save the thumbnail of the video as an image file, as well as downloading the video.

Usage

Usage: sad -s <search> -p <platform> [options]

Options:
      --help       Show help                                           [boolean]
      --version    Show version number                                 [boolean]
  -s, --search     What to search for                        [string] [required]
  -p, --platform   What platform to search on
                          [string] [required] [choices: "youtube", "soundcloud"]
  -a, --audio      Only download audio, not video     [boolean] [default: false]
  -t, --thumbnail  Save the thumbnail image           [boolean] [default: false]

Fixing the Python Thing

Linux

Installing python-is-python3 will make the python command functional, if the only one you have is python3.

sudo apt install python-is-python3

Windows

If you attempt to run python from the command line and don't have it installed, Windows will open the microsoft store page for Python 3. All you need to do is install it from there.