node-pdflatex
Advanced tools
Comparing version 0.1.1 to 0.2.0
/// <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; |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2533
42