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.