rive-lottie

0.1.1 • Public • Published

Example

const fs = require('fs');
const converter = require('./src/index');

const buffer = fs.readFileSync('./new_file_4.riv');

const animationsData = converter(buffer);

animationsData.forEach((anim, index) => {
    fs.writeFile(
        `./data_rive_${index}.json`,
        JSON.stringify(anim, null, 2),
        () => {},
    );
})

Readme

Keywords

none

Package Sidebar

Install

npm i rive-lottie

Weekly Downloads

55

Version

0.1.1

License

ISC

Unpacked Size

756 kB

Total Files

88

Last publish

Collaborators

  • avivian