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 - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

5

lib/index.d.ts
/// <reference types="node" />
declare const pdflatex: (source: NodeJS.ReadableStream, options?: {
import { Readable } from 'stream';
declare const pdflatex: (source: NodeJS.ReadableStream | Readable, options?: {
texInputs?: string[];
shellEscape?: boolean;
}) => NodeJS.ReadableStream;
}) => NodeJS.ReadableStream | Readable;
export default pdflatex;

3

lib/index.js

@@ -26,6 +26,7 @@ "use strict";

});
source.pipe(command.stdin);
command.stdout.pipe(through());
command.on('exit', code => code === 0 ?
fs_1.createReadStream(path_1.join(tempPath, 'texput.pdf')).pipe(result)
: result.emit('error', 'Error during LaTeX compilation'));
source.pipe(command.stdin);
});

@@ -32,0 +33,0 @@ return result;

{
"name": "node-pdflatex",
"version": "0.1.1",
"version": "0.2.0",
"description": "LaTeX PDF wrapper for Node",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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