New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aegisub-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aegisub-parser

Parses Aegisub Files (.ass)

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

Aegisub Parser

Parses Aegisub files (.ass). Easily extensible for past/future sections.

Installation

npm install aegisub-parser --save

Usage

const AegisubParser = require('aegisub-parser');

AegisubParser.parse('./full_metal_panic_01.ass').then(script => {
  console.log(script.events.length);
}).catch(err) {
  if (err instanceof AegisubInvalidStyle) {
    console.log('Please validate your Aegisub styles.');
  } else if (err instanceof AegisubInvalidEvent) {
    console.log('Please validate your Aegisub events.');
  }
};  

This returns an AegisubScript object, which given a standard v4 file looks like the following:

  • AegisubScript Properties
    • info (Map): Map of info section key/value pairs.
    • garbage (Map): Map of garbage section key/value pairs.
    • styles (Map): Map of styles in name/Map<Header,Value> pairs.
    • events (Array): Array of Map<Header,Value> objects in sequential order.

Special Thanks

Toby, Matthias, and Good Job Media! for design assistance and spec clarification.

Test files pulled from Vivid and Good Job Media! GitHub Repositories.

Keywords

FAQs

Package last updated on 14 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc