I have a SuiteScript question. I know that ZIP is ...
# general
a
I have a SuiteScript question. I know that ZIP is a supported file type for file creation. Is it possible to programmatically unzip a file and parse its contents? Or can its contents be parsed with SS2.0 without unzipping it?
j
I had a similar question awhile back and didn't get a response so resorted to posting the zip file from NetSuite to be opened on an external Node.js endpoint where I used adm-zip. However since then I remember I believe it was @alien4u who posted a link to a site that would allow you to get any npm module in a state for use in NetSuite. @alien4u assuming my memory's correct could something like adm-zip or another npm zip module be easily brought into NetSuite.
a
Hi @JohnnyC Thanks for your answer. I did find SuiteAnswer 76947 about it. JSzip is available for npm, so it looks like I'll be using that.
j
If you don't mind let me know how you made out. Curious how you take an npm module and all the dependencies into NetSuite to be usable. Haven't done it myself.
a
There is a site where they claim to have npm modules converted or simply amd compatibles... never tried entirely myself by the site it out there I don't even remember the URL right now...
j
found it was it unpkg.com?
n
Even I am interested in this. Whoever invents this wheel, just let us all in.
a
That the website