Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@benjamin-vanryseghem/node-latex
Advanced tools
Readme
A small wrapper for generating PDFs with LaTeX in Node.
LaTeX must be installed on your machine. You can download it here.
npm install node-latex
const latex = require('node-latex')
const fs = require('fs')
const input = fs.createReadStream('input.tex')
const output = fs.createWriteStream('output.pdf')
const pdf = latex(input)
pdf.pipe(output)
pdf.on('error', err => console.error(err))
pdf.on('finish', () => console.log('PDF generated!'))
View more examples here.
doc [ReadableStream|String] Required - The (La)TeX document you want to use.
options.inputs [String|Array] - The path (or an array of paths) to the directory which contains the assets necessary for the doc.
options.precompiled [String|Array] - The path (or an array of paths) to the directory which contains the precompiled files necessary for the doc.
options.fonts [String|Array] - The path (or an array of paths) to the directory which contains the fonts necessary for the doc (you will most likely want to use this option if you're working with fontspec
).
options.cmd [String] - The command to run for your document (pdflatex
, xetex
, etc). pdflatex
is the default.
options.args [Array] - Arguments passed to cmd
. Defaults to ['-halt-on-error']
.
options.passes [Number] - The number of times to run options.cmd
. Some documents require multiple passes. Only works when doc
is a String. Defaults to 1
.
options.errorLogs [String] - The path to the file where you want to save the contents of the error log to.
MIT
FAQs
A small wrapper for LaTeX.
The npm package @benjamin-vanryseghem/node-latex receives a total of 3 weekly downloads. As such, @benjamin-vanryseghem/node-latex popularity was classified as not popular.
We found that @benjamin-vanryseghem/node-latex 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.