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

medman

v2.0.4

Published

CLI media manager for remote media servers.

Downloads

15

Readme

MedMan

A CLI Media Manager to make maintaining a remote media server a breeze.

Overview

  • Hate getting a folder full of TV episodes from your mate but your Plex server won't detect them 'cause they're all named weird?
  • Hate not being able to export your movie library metadata out of Plex?
  • Want to know how much disk space your massive library of ~~porn~~ movies occupies?
  • Unable to use a normal file browser because your server is remote and only accessible via SSH?

MedMan to the rescue!

MedMan is a command line tool to make managing your remote movie server a breeze. Supporting features like media scanning, disk usage analysis, renaming of pesky episode formats, and querying and exporting library metadata, MedMan should be the number 1 tool of any Plex admin.

Installation

  1. Make sure Node and NPM are installed on your system.
    • You can follow the installation instructions here
  2. Install Medman globally.
    • In your terminal , run npm install --global medman
  3. MedMan should now be installed to your path.
    • In your terminal you can now run medman [command...]

Usage

Scan

Scans a given directory for valid media files, and displays the media found.

medman scan <directory>

Example Output:

medman scan ./downloads

Episodes found:
-----------------------------
Cool Show Season 01 - Episode 04.mp4
CoolShow.1.2.avi
CoolShow.1x5.avi
CoolShow.S1E3.mkv
CoolShow.s01.e01.mkv
foo.avi
bar.mkv
baz.mp4

Rename (TV Series)

Scans a given directory for media files, extracts the Season and Episode identifier (e.g. S01 E03), and renames file to match format expected by Plex (e.g Showname - S01E03.mp4) using the Show Name provided. Any files that are non-media or do not have a valid identifier will be skipped.

  • The --preview or -p modifier can be used to preview the rename action without actually renaming files
medman rename <show-name> <directory>

Example output:

medman rename "Cool Show" ./downloads

Renamed episodes:
-----------------------------
CoolShow.s01.e01.mkv -> Cool Show - S01E01.mkv
CoolShow.1.2.avi -> Cool Show - S01E02.avi
CoolShow.S1E3.mkv -> Cool Show - S01E03.mkv
Cool Show Season 01 - Episode 04.mp4 -> Cool Show - S01E04.mp4
CoolShow.1x5.avi -> Cool Show - S01E05.avi
Skipped episodes
	foo.avi
	bar.mkv
	baz.mp4


Query

[Coming soon!]

Querys a directory of media files, scanning the media metadata of each file, and writing the output to json and csv.