ilovepdf/ilovepdf-nodejs ? reverse-engineered prompt

Reverse engineered prompt

Build me a Node.js library for the iLovePDF API that lets me automate common PDF tasks from code.

I want to be able to create a client with my public and secret keys, start a task, add files from either a local path or a file URL, then process and download the result with simple promise based calls or await. It should support the main iLovePDF actions like merge, split, compress, convert Office to PDF, PDF to JPG, images to PDF, add page numbers, rotate, unlock, watermark, and repair.

When I upload a file, I also want to get useful file info back like page count and page sizes. It would be nice to expose how many files are left on the account after a task starts too.

Please make it easy to use, well organized, and include a few clear examples in the README for both local files and URLs. If you need to check the current API details, look up the docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab