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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aedev-tools/splitit

v1.0.2

Published

Split and slice videos into pieces with fixed steps or random cuts

Downloads

47

Readme

splitit

A fast, easy-to-use CLI tool for splitting and slicing videos into pieces.

Features

  • Fixed Step Mode: Split video into equal-length segments
  • Random Cuts Mode: Split video into N random parts
  • Interactive & CLI Modes: Choose guided experience or command-line flags
  • Smart Encoding: Uses fast copy mode by default, falls back to re-encoding when needed
  • Cross-platform: Works on macOS, Linux, and Windows

Installation

npm install -g splitit

Then install ffmpeg (required dependency):

# macOS
brew install ffmpeg

# Ubuntu/Debian
sudo apt-get install ffmpeg

# Other systems: https://ffmpeg.org/download.html

Usage

Interactive Mode

Simply run splitit and follow the prompts:

splitit
splitit split video.mp4

Command-Line Mode

Use flags to specify options directly:

Fixed step splitting:

splitit split video.mp4 --mode fixed --step 60
splitit split video.mp4 -m fixed -s 60

Random cuts:

splitit split video.mp4 --mode random --parts 5
splitit split video.mp4 -m random -p 5

Custom output directory:

splitit split video.mp4 -m fixed -s 60 --output ./output

Help

splitit --help
splitit split --help

Options

split command

Options:
  --mode, -m <mode>       fixed|random (interactive if not provided)
  --step, -s <seconds>    Step size in seconds or HH:MM:SS (fixed mode)
  --parts, -p <number>    Number of parts (random mode)
  --output, -o <dir>      Output directory (default: splitit_<filename>/)
  --help, -h              Show help

Examples

Split a video every 30 seconds

splitit split myvideo.mp4 --mode fixed --step 30
# Creates: splitit_myvideo/myvideo_part_001.mp4, myvideo_part_002.mp4, etc.

Split a video into 5 random parts

splitit split myvideo.mp4 --mode random --parts 5

Interactive mode

$ splitit split podcast.mp4

? Choose split mode: (Use arrow keys)
❯ Fixed steps (e.g., every 60s)
  Random cuts

? Enter step size (seconds or HH:MM:SS): 5:00

✓ Created podcast_part_001.mp4
✓ Created podcast_part_002.mp4
...
Done. Parts saved to: splitit_podcast

Output

  • Output Directory: splitit_<original_filename>/ (in same directory as input)
  • File Names: <filename>_part_001.<ext>, <filename>_part_002.<ext>, etc.
  • Format: Original codec preserved for quality

Time Format

Step size accepts multiple formats:

  • Seconds: 60, 30.5
  • MM:SS: 1:30, 5:00
  • HH:MM:SS: 01:30:00, 00:05:30

Development

git clone <repo>
cd splitit-cli
npm install
npm run build
npm run dev

License

MIT