0.0.33 • Published 6 months ago

@newsteam/imagemin v0.0.33

Weekly downloads
31
License
MIT
Repository
github
Last release
6 months ago

@newsteam/imagemin

License npm package npm downloads Dependencies DevDependencies

This package provides a shared config for imagemin and several of its plugins.

Install

$ npm install imagemin

Usage

import imagemin from "@newsteam/imagemin";

(async () => {

  const files = await imagemin(['images/*.{jpg,png}'], 'build/images');

  console.log(files);
  //=> [{data: <Buffer 89 50 4e ...>, path: 'build/images/foo.jpg'}, ...]

})();

API

imagemin(input, output, options)

Returns Promise<Object[]> in the format {data: Buffer, path: string}.

input

Type: string[]

Files to be optimized. See supported minimatch patterns.

output

Type: string

Maintenance

You can run tests with npm test.

0.0.33

6 months ago

0.0.32

2 years ago

0.0.30

3 years ago

0.0.31

3 years ago

0.0.28

3 years ago

0.0.29

3 years ago

0.0.27

3 years ago

0.0.26

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago