doq icon indicating copy to clipboard operation
doq copied to clipboard

Node.js integration and NPM package

Open shivaprsd opened this issue 3 years ago • 3 comments

An NPM package would be useful to devs wishing to integrate doq in their projects.

I am not familiar with the Node.js platform, so help in this direction is most welcome.

shivaprsd avatar May 20 '22 13:05 shivaprsd

Happy to help with this!

I'd recommend using https://github.com/marketplace/actions/npm-publish, which will trigger an NPM deploy every time there's a version change.

You'll need to add the action, and set an action env variable which will be your NPM token (https://docs.npmjs.com/creating-and-viewing-access-tokens)

wyatt avatar Oct 30 '22 14:10 wyatt

Thanks for stopping by! I followed the pointers you gave. Really useful. 👍🏼

But before publishing, we need to figure out how exactly the PDF.js generic viewer is integrated by projects in NodeJS. Only then we can make necessary code changes and provide instructions to integrate doq into their setup.

I think there are some Node-integration examples in the PDF.js repo. Any pointers in that directions are appreciated. 🙂

shivaprsd avatar Nov 02 '22 05:11 shivaprsd

I went through the PDF.js and Node.js docs. Added to Todo.

shivaprsd avatar Nov 16 '22 06:11 shivaprsd