Skip to content

deflateSync/inflateSync only build #134

Answered by 101arrowz
lulebe asked this question in Q&A
Discussion options

You must be logged in to vote

I made a build that exports those four functions in ESM format for you. Here's the file (~9kB, 4.5kB gzipped):

var r=Uint8Array,n=Uint16Array,e=Uint32Array,a=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),f=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),t=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=function(r,a){for(var f=new n(31),t=0;t<31;++t)f[t]=a+=1<<r[t-1];var o=new e(f[30]);for(t=1;t<30;++t)for(var i=f[t];i<f[t+1];++i)o[i]=i-f[t]<<5|t;return[f,o]},i=o(a,2),u=i[0],v=i[1];u[28]=258,v[258]=28;for(var l=o(f,0),c=l[0],s=l[1],h=new n(32768),g=0;g<32768;++g){var w=(43690&g)>>>1|(21845&g)<<1;w=(61680&(w=(52428&w)>>>2|(

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lulebe
Comment options

Answer selected by 101arrowz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #132 on June 14, 2022 16:39.