Skip to content

OpenGG/lottie-tiny

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 71.9%
  • JavaScript 28.1%