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

yt-audio

v1.0.1

Published

Download and merge audio clips from YouTube videos

Downloads

11

Readme

yt-audio

A command-line tool to download and merge audio clips from YouTube videos.

Features

  • Extract audio from specific time ranges in YouTube videos
  • Merge multiple audio clips into a single file
  • Interactive mode for easy input
  • Batch processing through a text file

Installation

npm install -g yt-audio

This installs the tool globally, making it available as a command from any directory.

Prerequisites

  • Node.js: nodejs.org
  • FFmpeg: Required for audio processing

Installing FFmpeg

Windows:

  1. Download from ffmpeg.org/download.html
  2. Add to your PATH environment variable

Mac:

brew install ffmpeg

Linux:

sudo apt update && sudo apt install ffmpeg

Quick Start

Interactive Mode

yt-audio

Follow the prompts and enter each YouTube URL with start and end times:

> https://www.youtube.com/watch?v=dQw4w9WgXcQ 00:30 01:45

Press Enter on an empty line when done.

Using a File

Create a text file with URLs and timestamps:

https://www.youtube.com/watch?v=dQw4w9WgXcQ 00:30 01:45
https://www.youtube.com/watch?v=9bZkp7q19f0 01:15 02:30

Then run:

yt-audio --input playlist.txt --output mix.mp3

Command Options

yt-audio [options]

Options:

  • -i, --input <path> - Path to input file with YouTube URLs and timestamps
  • -o, --output <filename> - Output filename (default: merged_audio.mp3)
  • -f, --format <format> - Output audio format (default: mp3)
  • -b, --bitrate <bitrate> - Output audio bitrate (default: 128k)

Examples

Extract clips from multiple videos and save as high-quality audio:

yt-audio -i favorites.txt -o compilation.mp3 -b 320k

For Non-Developers

If you're new to command-line tools:

  1. Install Node.js from nodejs.org
  2. Install FFmpeg (see instructions above)
  3. Open a terminal or command prompt
  4. Run: npm install -g yt-audio
  5. Run: yt-audio and follow the instructions

Time Formats

Supported formats:

  • HH:MM:SS (hours:minutes:seconds)
  • MM:SS (minutes:seconds)
  • SS (seconds)

License

MIT

Legal Notice

This tool is for personal use only. Please respect copyright and only download content you have permission to use.