Open bcgetpause opened 3 years ago
Hello,
I am not the author but I have quite some experience with Angular so I can answer your question, although late.
It is possible to run pure Js libraries in Angular without any '.d.ts' file, You just need to import it like import * as lib from 'library'
or if it's more modern and uses named exports you can import it like import { libPart } from 'library'
.
Now about this library, I looked at the code and it uses nodeJs modules like 'fs' so it would be impossible to run it inside an Angular app (or any web app for that matter). You can create a small server that runs on NodeJs. On an API call, it creates and sends the '.xlsx' file back to the web app.
Thanks for your answer :)
As I know, this library is for node.js code as it uses reading *.xlsx file template
you could try to use this library with something like https://github.com/jvilk/BrowserFS
As I know, this library is for node.js code as it uses reading *.xlsx file template
you could try to use this library with something like https://github.com/jvilk/BrowserFS
Thank you Tsenzuk, i'll watch this asap ;)
Hello,
I'm working on an Angular 11 webapp, and iwas looking for a library that could help me to export data as an Excel chart. I found your lib but it's for Node.JS only. I saw on Internet that to be able to use this one in Angular it's necessary to have a*.d.ts file that is used to declare the types of the variables used, etc.
Do you plan to do it ?
Best regards, Stefan