Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-pdflatex

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pdflatex

PDFLaTeX wrapper for Node

  • 0.3.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
21
increased by133.33%
Maintainers
1
Weekly downloads
 
Created
Source

node-pdflatex

PDFLaTeX wrapper for Node

Install

npm install node-pdflatex

Usage

pdflatex takes latex source and returns a Promise of Buffer.

import pdflatex from 'node-pdflatex'

const source = `
\\documentclass{article}
\\begin{document}
Hello World!
\\end{document}
`

const pdf = await pdflatex(source)

Options

shellEscape: boolean

Adds the -shell-escape flag during compilation.

pdflatex(latexContent, { shellEscape: true })
texInputs: Array<string>

Adds paths to TEXINPUTS env var during compilation.

pdflatex(latexContent, { texInputs: ['../resources/'] })

TypeScript

This package is written in TypeScript.

That means the NPM package comes with type definitions included.

License

MIT

Keywords

FAQs

Package last updated on 28 Oct 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc