Anyone ever try to use zlib in SuiteScript to comp...
# suitescript
d
Anyone ever try to use zlib in SuiteScript to compress data into a zip?
b
ive tried jszip and pako in the past
there are size limitations in 2.0 since the js engine is really bad at doing binary operations
you might have better luck in 2.1
d
hmmm ... are they client-side only ... or can I use them server side?
b
i was using the serverside
things that are designed to work in the browser tend to work better in suitescript than things designed for node
s
I'm hoping that situation might improve in SS2.1. Though I haven't really looked at the new engine - is it more 'browser-like' or 'nodejs-like'
b
browser like, they dont expose any of the node stuff
s
10-4
hopefully they also don't expose browser-only stuff in server-side engine (has been a problem in the past)
b
ss1 had a window variable, used not to represent the window
was a terrible idea
s
yes, and IIRC SS2.1 has a 'console' variable that does nothing as far as I can tell. I think I filed a ticket on that and they may have fixed it.
imho there shouldn't be anything exposed to us in the runtime that isn't documented.
especially if it's something that can fool a library script, like
window
or
console
b
@darrenhillconsulting did you end up using zlib or jszip? I am looking into creating zip files