
Security News
Packagist Urges Immediate Composer Update After GitHub Actions Token Leak
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.
latex-parser
Advanced tools
This is a library designed to build abstract syntax trees for LaTeX documents using JavaScript / TypeScript.
This project only parses a subset of what can be considered "canonical" LaTeX. As I see it, a full LaTeX parser would be a complete port of the TeX code, and I am not crazy enough to attempt that. Of course, we can still make something that works most of the time. This approach is similar to KaTeX, a Javascript library which focuses on math typesetting. This library focuses more on parsing text mode.
If you don't believe parsing LaTeX is necessarily difficult, prepare to be outsmugged:
Download the latest standalone JavaScript file (ES5) or install from NPM:
npm install latex-parser
import {latexParser} from "latex-parser";
// tokens :: LaTeX[]
const tokens = latexParser.parse("hello \\author[opt]{name}");
Pull requests are welcome. If you find a bug or an omission, don't be afraid to open an issue.
This project used to be a TypeScript fork of the TeXnous project, but after v0.3.0 is modeled after the Haskell LaTeX library HaTeX.
Inquiries go to maartentrompper@freedom.nl.
FAQs
LaTeX parser
We found that latex-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.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.

Research
GemStuffer abuses RubyGems as an exfiltration channel, packaging scraped UK council portal data into junk gems published from new accounts.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.