{"bugs":{"url":"https://github.com/saadq/node-latex/issues"},"dist":{"shasum":"088f81e89bed402e17186a0e3ae79de02f040a50","tarball":"https://registry.npmjs.org/node-latex/-/node-latex-2.6.0-dev.0.tgz","fileCount":6,"integrity":"sha512-vI5KhQ3lBIvCMJfPF7dJ9Wo18iz/piBgHoP9l3Vgy8VKwO8ZBY7H8s7kt0sNiSK/YycJjwfINMSNKazQFW12Dg==","signatures":[{"sig":"MEYCIQDzvPhOug/L7bx98qe3bUkNzTCynYhqvKnKTuHGG1ortQIhAOZCVS0gdgTffVv3fBwC0hPPS2cXAq3WiWQm0RJqVvci","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53595,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0JpcCRA9TVsSAnZWagAAKCQP/21lZr/4RioD9TuIs/EI\nCaOA29H8N9x5UCJ7PbYGnEoyEn4djorhT5dHo487Be/cNIQjenCGgQ/Hq7k0\nhKzIr1LI0CTQkdMaLGNRmbqcd1nuBBhH0xBa0VTdcF45zhqIwZb23hvaI4bi\n0bfdhIxuCMIDrAK1pEgSvPBMR0PShGGjLE7hp7QxSkZLitGwEtsnFFZETUNL\nStRP4GwKx3pj7pgaCTRhA5mcc49fIuqIInXme0wWi+JdvvfWSR3jhePdm1BJ\nsoDgGnK/wH9yZS9Ltaypdz9J3gsFEP3FmalATL10vNl9Sw9zlD5/ZIyjdyX/\nCV8v8Py3mL9Z5kNXjwLARLqy9KytjSRKbEDQhtv+cV5OKIrb74Ac1b5DGAuG\n1bpMoC/Rr3sDjsUS3bC5+OaX+BthY6hhGSh9W+PlGi+Mcy3+7iRhHHQQ5HDa\nMCbdoejD3kgIMetqkLgDbD/kwHUefwAGFg/o2ubfF8lZOroWfVfwxWGAiqEW\nuRHujysMoIHHRxs14RPCDRbzIBpZ9F9T5c5fAVsAKTnAC91PGrRBs7DGlXi6\n4cy04jF1v+LZ3lzqqSF/CUBGfGfi+xnqCo3UpFf52OikKrg3W7cjBTPdWljO\nYhEFsWdL9Mc1dRo8t7woIk135oLMEIGdvEZWEry1vA3Bn2IGA/wGTv4LzPxp\n+/SP\r\n=r76C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"node-latex","types":"./index.d.ts","author":{"name":"Saad Quadri"},"readme":"# node-latex\nA small wrapper for generating PDFs with LaTeX in Node.\n\n## Requirements\n\nLaTeX must be installed on your machine.  You can download it [here](https://www.latex-project.org/get/).\n\n## Install\n\n```\nnpm install node-latex\n```\n\n## Usage\n\n```js\nconst latex = require('node-latex')\nconst fs = require('fs')\n\nconst input = fs.createReadStream('input.tex')\nconst output = fs.createWriteStream('output.pdf')\nconst pdf = latex(input)\n\npdf.pipe(output)\npdf.on('error', err => console.error(err))\npdf.on('finish', () => console.log('PDF generated!'))\n```\n\nView more examples [here](https://github.com/saadq/node-latex/tree/master/examples).\n\n## API\n\n### latex(doc[, options])\n\n**doc** \\[ReadableStream|String\\] *Required* - The (La)TeX document you want to use.\n\n**options.inputs** \\[String|Array<String>\\] - The absolute path (or an array of absolute paths) to the directory which contains the assets necessary for the doc.\n\n**options.fonts** \\[String|Array<String>\\] - The absolute path (or an array of absolute 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`).\n\n**options.cmd** \\[String\\] - The command to run for your document (`pdflatex`, `xetex`, etc). `pdflatex` is the default.\n\n**options.args** \\[Array<String>\\] - Arguments passed to `cmd`. Defaults to `['-halt-on-error']`.\n\n**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`.\n\n**options.errorLogs** \\[String] - The path to the file where you want to save the contents of the error log to.\n\n## License\nMIT\n","gitHead":"eb0c16830c6f7e47d6a0108a9b0175f33c52e158","license":"MIT","scripts":{"fix":"blyss --fix","lint":"blyss | snazzy","test":"npm run --silent lint"},"_npmUser":{"name":"saadq","email":"saad@saadq.com"},"homepage":"https://github.com/saadq/node-latex#readme","keywords":["latex","pdflatex","xetex","pdf"],"repository":{"url":"git+https://github.com/saadq/node-latex.git","type":"git"},"_npmVersion":"6.7.0","description":"A small wrapper for LaTeX.","directories":{},"maintainers":[{"name":"saadq","email":"saad@saadq.com"}],"_nodeVersion":"11.12.0","dependencies":{"temp":"^0.8.3","fs-extra":"^2.0.0","through2":"^2.0.3","@types/node":"^11.12.0","string-to-stream":"^1.1.0"},"_hasShrinkwrap":false,"readmeFilename":"readme.md","devDependencies":{"blyss":"^2.0.0","snazzy":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node-latex_2.6.0-dev.0_1557174875611_0.09065802270117351","host":"s3://npm-registry-packages"},"_id":"node-latex@2.6.0-dev.0","version":"2.6.0-dev.0"}