UNPKG

ngx-lottie

Version:

<h1 align="center"> <img src="https://raw.githubusercontent.com/ngx-lottie/ngx-lottie/master/docs/assets/lottie.gif"> </h1>

12 lines 339 B
import { readFile } from 'fs'; export function readFileWithAnimationData(path) { return new Promise((resolve, reject) => { readFile(path, (error, data) => { if (error) { return reject(error); } resolve(data.toString()); }); }); } //# sourceMappingURL=utils.js.map