{"_id":"@brunomartins24/ilovepdf-nodejs","_rev":"1-a03a70ac951f69d4621b5fd84b839b86","name":"@brunomartins24/ilovepdf-nodejs","dist-tags":{"latest":"0.2.6"},"versions":{"0.2.5":{"name":"@brunomartins24/ilovepdf-nodejs","author":{"name":"ILOVEPDF S.L.","email":"developer@ilovepdf.com","url":"https://developer.ilovepdf.com/"},"license":"MIT","description":"ILovePDF Api - NodeJS Library","version":"0.2.5","main":"index.js","scripts":{"build":"tsc && sed 's###' ./package.json > ./dist/package.json && cp README.md ./dist","test":"jest ./src --detectOpenHandles","upload-npm":"npm run build && cd ./dist && npm publish --access public"},"dependencies":{"@brunomartins24/ilovepdf-js-core":"~0.2.0"},"devDependencies":{"@babel/core":"^7.11.1","@babel/preset-env":"^7.11.0","@babel/preset-typescript":"^7.10.4","@types/form-data":"^2.5.0","@types/jest":"^26.0.9","@types/node":"^14.0.27","babel-jest":"^26.2.2","dotenv":"^8.2.0","jest":"^26.2.2","typescript":"^5.1.6"},"jest":{"testEnvironment":"node","testTimeout":30000},"repository":{"type":"git","url":"git+https://github.com/ilovepdf/ilovepdf-nodejs.git"},"keywords":["pdf","library","tool","merge","split","compress","convert","api","nodejs"],"_id":"@brunomartins24/ilovepdf-nodejs@0.2.5","gitHead":"c6be865180eb715f3048dd22ff991fece9e3f69a","types":"./index.d.ts","bugs":{"url":"https://github.com/ilovepdf/ilovepdf-nodejs/issues"},"homepage":"https://github.com/ilovepdf/ilovepdf-nodejs#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-chhlgQG8+xF1SVxjCNCnOsI3hlCZHkU56HktyBnYeqp9GMECBBkdc/3Fq6Jhd54nHZ7iYC2i83ICXQEW4vaxfQ==","shasum":"2f05a13ee20beb3f5e8f6f56e66d29e41324428e","tarball":"https://registry.npmjs.org/@brunomartins24/ilovepdf-nodejs/-/ilovepdf-nodejs-0.2.5.tgz","fileCount":89,"unpackedSize":77637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGXnuhPvqgKtv+SbJtt+6o0sxUcS9Pzy+YaszKvrN/3sAiAw29hhM2U4lpfFlFft6GwHbqJdNcKaNdsSL6ATqh9gFA=="}]},"_npmUser":{"name":"brunmartins","email":"btinfor@gmail.com"},"directories":{},"maintainers":[{"name":"brunmartins","email":"btinfor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilovepdf-nodejs_0.2.5_1714432477436_0.8497870571861927"},"_hasShrinkwrap":false},"0.2.6":{"name":"@brunomartins24/ilovepdf-nodejs","author":{"name":"ILOVEPDF S.L.","email":"developer@ilovepdf.com","url":"https://developer.ilovepdf.com/"},"license":"MIT","description":"ILovePDF Api - NodeJS Library","version":"0.2.6","main":"index.js","scripts":{"build":"tsc && sed 's###' ./package.json > ./dist/package.json && cp README.md ./dist","test":"jest ./src --detectOpenHandles","upload-npm":"npm run build && cd ./dist && npm publish --access public"},"dependencies":{"@brunomartins24/ilovepdf-js-core":"~0.2.0"},"devDependencies":{"@babel/core":"^7.11.1","@babel/preset-env":"^7.11.0","@babel/preset-typescript":"^7.10.4","@types/form-data":"^2.5.0","@types/jest":"^26.0.9","@types/node":"^14.0.27","babel-jest":"^26.2.2","dotenv":"^8.2.0","jest":"^26.2.2","typescript":"^5.1.6"},"jest":{"testEnvironment":"node","testTimeout":30000},"repository":{"type":"git","url":"git+https://github.com/ilovepdf/ilovepdf-nodejs.git"},"keywords":["pdf","library","tool","merge","split","compress","convert","api","nodejs"],"_id":"@brunomartins24/ilovepdf-nodejs@0.2.6","gitHead":"c6be865180eb715f3048dd22ff991fece9e3f69a","types":"./index.d.ts","bugs":{"url":"https://github.com/ilovepdf/ilovepdf-nodejs/issues"},"homepage":"https://github.com/ilovepdf/ilovepdf-nodejs#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-oZZ3Q1abPqc/Zv8uxGdCJzayBCMe43irbCQQgSbfBW/U+2fqNdcu9NMeBd38kQpIJAdahurUCCvJ/tF0kImfqQ==","shasum":"5a1e6d5e367753295e2eb040427832a676b96a84","tarball":"https://registry.npmjs.org/@brunomartins24/ilovepdf-nodejs/-/ilovepdf-nodejs-0.2.6.tgz","fileCount":89,"unpackedSize":77904,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGybLR5I9Q7UE5Ett+u1TM3EFNYBKnoSeXJ41j2EeGqmAiEAvnRjFnBi3H1q0WuvoiYWkZB+tD+prtenwjeHB0CQzlQ="}]},"_npmUser":{"name":"brunmartins","email":"btinfor@gmail.com"},"directories":{},"maintainers":[{"name":"brunmartins","email":"btinfor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilovepdf-nodejs_0.2.6_1714434332487_0.9872901036059232"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-29T23:14:37.301Z","0.2.5":"2024-04-29T23:14:37.620Z","modified":"2024-04-29T23:45:32.875Z","0.2.6":"2024-04-29T23:45:32.659Z"},"maintainers":[{"name":"brunmartins","email":"btinfor@gmail.com"}],"description":"ILovePDF Api - NodeJS Library","homepage":"https://github.com/ilovepdf/ilovepdf-nodejs#readme","keywords":["pdf","library","tool","merge","split","compress","convert","api","nodejs"],"repository":{"type":"git","url":"git+https://github.com/ilovepdf/ilovepdf-nodejs.git"},"author":{"name":"ILOVEPDF S.L.","email":"developer@ilovepdf.com","url":"https://developer.ilovepdf.com/"},"bugs":{"url":"https://github.com/ilovepdf/ilovepdf-nodejs/issues"},"license":"MIT","readme":"iLovePDF Api - NodeJS Library\n--------------------------\n\nNodeJS library for [iLovePDF Api](https://developer.ilovepdf.com)\n\nYou can sign up for a iLovePDF account at https://developer.ilovepdf.com .\n\nDevelop and automate PDF processing tasks like Compress PDF, Merge PDF, Split PDF, convert Office to PDF, PDF to JPG, Images to PDF, add Page Numbers, Rotate PDF, Unlock PDF, stamp a Watermark and Repair PDF. Each one with several settings to get your desired results.\n\n## Requirements\n\nRequirements to use this library are:\n\n1. NPM - Package built with version @6.14.5 .\n2. NodeJS - Package built with version @12.18.2 .\n\nYou can download them [here](https://nodejs.org/en).\n\n## Install\n\nYou can install the library via [NPM](https://www.npmjs.com). Run the following command:\n\n```bash\nnpm install @ilovepdf/ilovepdf-nodejs\n```\n\n## Getting Started\n\n### Using public URLs\n\n```js\nconst ILovePDFApi = require('@ilovepdf/ilovepdf-nodejs');\n\nconst instance = new ILovePDFApi('<PUBLIC_KEY>', '<SECRET_KEY>');\n\n// Public and secret key can be found in your developer panel\n// at https://developer.ilovepdf.com/user/projects .\nconst task = instance.newTask('merge');\n\n// Promise-based way to use ILovePDFApi.\ntask.start()\n.then(() => {\n    return task.addFile('<FILE_URL>');\n})\n.then(() => {\n    return task.addFile('<FILE_URL>');\n})\n.then(() => {\n    return task.process();\n})\n.then(() => {\n    return task.download();\n})\n.then((data) => {\n    console.log('DONE');\n});\n```\n\n### Using ILovePDFFile class\n\n```js\nconst ILovePDFApi = require('@ilovepdf/ilovepdf-nodejs');\nconst ILovePDFFile = require('@ilovepdf/ilovepdf-nodejs/ILovePDFFile');\n\nconst instance = new ILovePDFApi('<PUBLIC_KEY>', '<SECRET_KEY>');\n\nconst task = instance.newTask('merge');\n\ntask.start()\n.then(() => {\n    const file = new ILovePDFFile('<FILE_PATH>');\n\n    return task.addFile(file);\n})\n.then(() => {\n    return task.addFile('<FILE_URL>');\n})\n.then(() => {\n    return task.process();\n})\n.then(() => {\n    return task.download();\n})\n.then((data) => {\n    console.log('DONE');\n});\n```\n\n### Use sync calls\n\nThanks to be a promise-based API it is possible use the `await` JavaScript operator in order to call Task methods. Here you have an example:\n\n```js\n    let task = instance.newTask('merge');\n    task = await task.start();\n    task = await task.addFile('<FILE_URL>');\n    task = await task.addFile('<FILE_URL>');\n    task = await task.process();\n\n    const data = await task.download();\n```\n\n## Documentation\n\nPlease see https://developer.ilovepdf.com/docs for up-to-date documentation.\n","readmeFilename":"README.md"}