I attempted to use your library server-side in a NestJS application, but due to ZipJS throwing an error on blob is not supported by this platform specifically at jszip/lib/utils.js:352:15. It does look like this is possible.
I believe NodeJS would be support with two changes:
- if the config object was allowed to provide the type that ZipJS would use instead of hard coding blob
- if the Promise of the zip was returned from a
generateXLSX(config) and the .then((blob) => Filesaver...) could be supplied on the default export which would just call the generateXLSX` function.
i'd be happy to contribute to the library if this is an acceptable solution/direction.
I attempted to use your library server-side in a NestJS application, but due to ZipJS throwing an error on
blob is not supported by this platformspecifically atjszip/lib/utils.js:352:15. It does look like this is possible.I believe NodeJS would be support with two changes:
generateXLSX(config)and the.then((blob) => Filesaver...) could be supplied on the default export which would just call thegenerateXLSX` function.i'd be happy to contribute to the library if this is an acceptable solution/direction.