h1dd3nsn1p3r / pdf-invoice

🥳 A node JS library that generates PDF invoice, estimates & receipts.
https://www.npmjs.com/package/@h1dd3nsn1p3r/pdf-invoice
MIT License
1 stars 5 forks source link

Add browser support #31

Closed zaynekomichi closed 5 days ago

zaynekomichi commented 1 week ago

As noted the fs package does not work in the browser. I suggest making a browser version of the package

Uncaught Error: Dynamic require of "fs" is not supported
h1dd3nsn1p3r commented 6 days ago

Hi @zaynekomichi

I created this package for node and bun environments. I am not sure if I will be having the client side implementation of this package.

However, I already have the API version of this package which uses Hono and bun runtime. Do you want to have a look at that? Do you think should I open-source it too and add link in the README?

zaynekomichi commented 5 days ago

That would be great,. A readme would go a long way in helping newbies, also would like to contribute to the project!