Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@qgustavor/ass-parser
Advanced tools
Parse SSA/ASS subtitle format. Forked from eush77/ass-parser.
detectStringifyOptions
helper function.https://codepen.io/qgustavor/full/YzaRXeX
assParser(text, [options])
Default export. Returns the parse tree.
Comments are ignored unless options.comments
is set.
Option | Type | Required? | Default |
---|---|---|---|
comments | boolean | No | false |
parseTimestamps | boolean | No | false |
Subtitle is a list of sections, each of them has section
and body
properties. The body
is a list of key-value bindings (descriptors), with key
and value
properties (type === 'comment'
and value
for comments).
value
can be one of the following:
"Format"
;"Format"
descriptor above in the section;When parseTimestamps
is set to true
timestamps on Start
and End
keys for Dialogue
and Comment
lines will be converted into numbers (in seconds).
At the moment override tags are not parsed.
detectStringifyOptions(text)
Named export. Returns an options object to be passed to stringify
in order to parse then stringify a subtitle with the minimal differences possible.
npm install @qgustavor/ass-parser
MIT
FAQs
Parse SSA/ASS subtitle format
The npm package @qgustavor/ass-parser receives a total of 3 weekly downloads. As such, @qgustavor/ass-parser popularity was classified as not popular.
We found that @qgustavor/ass-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.