1.0.7 • Published 3 years ago

node-tinify v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Node tinify

Tinify png/jpeg file!

Install

yarn add node-tinify
or
npm i node-tinify

Apis

Compress

compress image buffer or file
function compress(bufferOrFile: Buffer | string, options?: CompressOptions): Promise<Buffer | string>

export interface CompressOptions {
	/**return type, default: 'url'*/
	returnType?: 'url' | 'buffer'
}

Cli

tinypng

> tinypng inputFilePath [outputFilePath]

print url when not specify outputFilePath

1.0.7

3 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago