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

normalasser

v3.0.2

Published

Extracts ASS subtitles from MKV video files and normalizes their appearance to enhance readability and ensure consistency.

Downloads

7

Readme

normalasser

Normalasser extracts ASS subtitles from MKV video files and normalizes their appearance to enhance readability and ensure consistency. Unlike the simpler SRT format, ASS subtitles include embedded styles that dictate font, color, and size, leaving no room for viewer preferences. Normalasser selectively overrides these styles to ensure that subtitles maintain a consistent size across different series and sources, while preserving other stylistic elements such as font choice, color, and positioning. This approach not only improves viewer experience but also upholds the original artistic intent of the subtitles.

Preview

Prerequisites

Install

npm install -g normalasser

Usage

To use Normalasser from the command line, simply run the tool followed by the absolute paths to the MKV files or directories containing MKV files. Normalasser will recursively scan directories to find all MKV files to extract and normalize ASS subtitles according to your specifications.

normalasser /path/to/video.mkv

You can also pass multiple paths:

normalasser /path/to/directory /path/to/video.mkv

Customize Normalasser's behavior with the following options:

  • --check-ass: Normalize already extracted ASS subtitles.
  • --force-mkv: Extract and normalize even if external ASS subtitles already exist.
  • --size: Set the size of the subtitles (tiny, small, normal, large or huge).

Example with multiple options:

normalasser --check-ass --size large /path/to/directory

Webserver

If no absolute paths are specified when launching Normalasser, it operates as a webserver on port 7883. This mode enables other applications to send POST requests with JSON payloads containing absolute paths to the MKV files or directories containing MKV files.

normalasser

To send a request, use any HTTP client capable of sending POST requests with JSON:

curl -X POST -d '{"path": "/path/to/video.mkv"}' http://127.0.0.1:7883

Normalasser scans the entire JSON object, extracting absolute paths from any part of its structure, regardless of how it is formatted. This flexibility ensures that Normalasser is compatible with a wide range of input sources and can be integrated with automation tools like Sonarr and Radarr that may send structured data in different formats.

Contributions

We welcome contributions from the community! If you have suggestions for improvements, bug fixes, or new features, please feel free to submit a pull request or open an issue on our GitHub page. Your feedback and contributions make Normalasser better for everyone.