
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Extract styles from SSA/ASS subtitles, edit & save back.
var parse = require('ass-parser');
var getStyles = require('ass-restyler');
var stringify = require('ass-stringify');
var subtitle = fs.readFileSync('subtitle.ass', { encoding: 'utf8' });
var ass = parse(subtitle, { comments: true });
var styles = getStyles(ass);
styles.Default.MarginV = 335;
styles.Default.Fontsize = Number(restyler.Default.Fontsize) + 10;
console.log(stringify(ass));
styles = assStyles(ass)
ass
- subtitle in the ass-parser format.
Returns the object containing all the styles from all the styling sections.
styles[style]
references the original parse tree node, so editing is fully supported.
styles[style][attribute]
is a value of the attribute in the specific style. It is usually a string and should always be expected to be a string.
However, you can't add a new style or erase an existing one, but why would you?
npm install ass-styles
MIT
FAQs
Extract styles from SSA/ASS subtitles, edit & save back
The npm package ass-styles receives a total of 1 weekly downloads. As such, ass-styles popularity was classified as not popular.
We found that ass-styles 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
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.