lottie-tiny
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

NPM

lottie tiny

Install

# use pngquant
npx lottie-tiny input.json output.json

# use tinypng
npx lottie-tiny input.json output.json -t "tinypng"

Usage

import lottieTiny from 'lottie-tiny';

(async () => {
  // tinypng
  const out = await lottieTiny(data);

  // pngquant
  const out = await lottieTiny(data, {
    type: 'tinypng',
  });
  console.log(out);
})();

Options

  • lottieJson Lottie file json data, Support the json data and string.
  • options not support.

Package Sidebar

Install

npm i lottie-tiny

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

5.84 kB

Total Files

12

Last publish

Collaborators

  • opengg