avocado-old/packages/core/flate.js
2019-10-02 18:06:31 -05:00

12 lines
202 B
JavaScript

import {deflateSync, inflateSync} from 'zlib';
export function inflate(buffer) {
return inflateSync(buffer);
}
export function deflate(buffer) {
return deflateSync(buffer, {
level: 9,
});
}