Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qgustavor/ass-stringify

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qgustavor/ass-stringify

Stringify ass-parser parse tree to plain SSA/ASS subtitle format

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ass-stringify

Stringify ass-parser parse tree to plain SSA/ASS subtitle format. Forked from eush77/ass-stringify.

Changes:

  • All dependencies replaced with native modern JavaScript functions.
  • ES Modules instead of CommonJS.
  • Added options.
  • Format numeric timestamps.

Demo

https://codepen.io/qgustavor/full/YzaRXeX

API

assStringify(ass, options)

Returns a text string. See the demo or test/sample.ass for an example.

Options is an object with the following keys:

  • lineBreak: defaults to \n, set to \r\n to use Windows' line breaks
  • formatJoiner: defaults to , , some subtitles use , instead
  • sectionJoiner: defaults to lineBreak repeated twice
  • timestampKeys: defaults to ['Start', 'End'], defines which keys can be formatted to timestamps when numbers are provided

References

Install

npm install @qgustavor/ass-stringify

License

MIT

Keywords

FAQs

Package last updated on 03 Jan 2023

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