0.1.9 • Published 4 years ago
lottie-type v0.1.9
install
npm i lottie-minifyuse
import { minify } from 'lottie-minify';
const miniData = minify(jsonData, {copy: false});
miniData === jsonData // true
minify(string)config
| key | type | default | desc |
|---|---|---|---|
| copy | boolean | false | copy source data |
| dropList | string[] | 'nm', 'tyName', 'n', 'mn', 'cl', 'ln' | dropKeyList |
| numberFixLength | number | 3 | number precision |
0.1.9
4 years ago