lottie-compress

lottie compress

Usage no npm install needed!

<script type="module">
  import lottieCompress from 'https://cdn.skypack.dev/lottie-compress';
</script>

README

NPM Build Status

lottie compress

Install

npm i -S lottie-compress

Usage

import LottieCompress from 'lottie-compress';

(async () => {
  const lottieCompress = new LottieCompress(data);
  const ret = await lottieCompress.execute();
  assert(ret.tiny === '75');
})();

Options

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