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

split-mp3

v1.1.0

Published

A command line tool to split mp3 files

Downloads

5

Readme

Split mp3

Split mp3 files from the command line.

Quick start

So you have a long mp3 file you want to split, let's say full.mp3.

You have to create a file for the tracks, let's say tracks.txt.

In this file, you will have to specify the start time and the title for each track, using the following format:

0:00 This is the first track
1:23 Second track here
4:56 I am the third one
7:00 Fourth time is a charm
12:34 Take five
56:00 Six is the last one

Once the tracks file is ready, you can split your long mp3 file:

npx split-mp3 full.mp3 tracks.txt

This will create six files:

01 - This is the first track.mp3
02 - Second track here.mp3
03 - I am the third one.mp3
04 - Fourth time is a charm.mp3
05 - Take five.mp3
06 - Six is the last one.mp3

Tracks file gotchas

A few things to note regarding the tracks file:

  • The start times for tracks must use the MM:SS or HH:MM:SS format. Note that the separator is :.

  • The start times and the titles must be separated by exactly one space.

  • The track titles must not contain funky characters, they will be used in file names.

    Also, FFMpeg will be called from a shell using a command like this:

    ffmpeg -i full.mp3 -acodec copy -ss 83 -to 296 "02 - Second track here.mp3"

    Command injections are possible, so be careful.

  • Blank lines and tailing white space will be ignored.

  • Leading zeros for the start times will be ignored (01:23, 01:23:45 are both accepted).

Requirements

You will need Node 12+ and npm 5.2+ to run this.

You will also need FFmpeg installed.

Contributing

If something doesn’t work, please file an issue.

If you have questions, need help, or would like to contribute, please reach out at [email protected].

Disclaimer

I made this tool to save myself some time.

I did not have great ambitions, I did not make it beautiful, I did not do a lot of testing.

It works on my machine, which is all I needed.

It will probably work on yours, too.

License

Split mp3 is licensed under MIT.