I was getting strange *.cpgz files after using this library's zip function to create shapefiles in a node environment, which I'm assuming is because the default zip type for JSZip is base64. This PR checks to see if you're running in a node environment, and if so changes the type to 'nodebuffer'.
I was getting strange *.cpgz files after using this library's zip function to create shapefiles in a node environment, which I'm assuming is because the default zip type for JSZip is base64. This PR checks to see if you're running in a node environment, and if so changes the type to
'nodebuffer'
.