lottie-optim

1.0.0 • Public • Published

LottieOptim

A simple and lightweight tool to optimise lottie files.

  • Reduced decimal precision (color values excluded)
  • Remove unused fields: nm, mn, hd, ks.r, ks.s, ix, np, cix
  • Minify JSON

Usage

npx lottie-optim [options] <file>
 
Options:
  -V, --version             output the version number
  -p, --precision <number>  Round numbers to a number of decimal places to reduce filesize (default: 2)
  -o, --out <file>          Output file, without this option the original file with be overridden
  -h, --help                output usage information

Keywords

none

Install

DownloadsWeekly Downloads

11

Version

1.0.0

License

MIT

Unpacked Size

4.97 kB

Total Files

5

Last publish

Collaborators

  • levibuzolic