gzip-size
Get the gzipped size of a string or buffer
Install
Usage
API
gzipSize(input, [options])
Returns a Promise
for the size.
gzipSize.sync(input, [options])
Returns the size.
input
Type: string
Buffer
options
Type: Object
Any zlib
option.
gzipSize.stream([options])
Returns a stream.PassThrough
. The stream emits a gzip-size
event and has a gzipSize
property.
gzipSize.file(path, [options])
Returns a Promise
for the size of the file.
path
Type: string
gzipSize.fileSync(path, [options])
Returns the size of the file.
Related
gzip-size-cli - CLI for this module
License
MIT © Sindre Sorhus
Last updated