
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
tvim-parser
Advanced tools
> This package implements parsing of the tvim articles which have certain TeX structure.
This package implements parsing of the tvim articles which have certain TeX structure.
$ npm install tvim-parser
The formats parameter is expected to be an array of objects as follows:
[
{
name: "tvim_ref", // Name of this type of article
tag: "^\\\\tvimRef\n", // JS-compatible regex of the corresponding TeX tag
fields: [ // array of fields to extract, in order they appear in the TeX file
"main_author",
"authors",
// ...
]
},
// ...
]
The contents parameter is expected to be a string with contents of the TeX file to parse. TeX file must have the following structure to be parsed correctly:
\tvimRef
{Author 1}
{Author 1, Author 2, \textit{Author 3}}
i. e. there should be a tag, followed by a sequence of parameters, enclosed in curly braces. Example usage:
const path = require('path');
const fs = require('fs');
const tvimParser = require('tvim-parser');
let formats = JSON.parse(fs.readFileSync(path.resolve('./test/formats.example.json'), 'utf8'));
let contents = fs.readFileSync(path.resolve('./test/example.tex'), 'utf8');
let result = tvimParser(formats, contents);
The result variable is expected to have the following value:
result = {
tvim_ref: [
{
main_author: "Author 1",
authors: "Author 1, Author 2, \\textit{Author 3}",
// ..
},
// ...
],
// ...
}
MIT
FAQs
> This package implements parsing of the tvim articles which have certain TeX structure.
We found that tvim-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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.