bodymovin-to-avd

1.0.8 • Public • Published

bodymovin-to-avd

Bodymovin to AVD converter

Example of usage

var avd_converter = require('./src/index.js');
var fs = require('fs');
 
fs.readFile("./exports/jsons/data.json",  "utf8",  function(error, data){
    process.on('unhandledRejection', function(err, promise) {
        console.error('Unhandled rejection (promise: ', promise, ', reason: ', err, ').');
    });
    var prom = avd_converter(JSON.parse(data))
    prom.then(function(xml){
        fs.writeFile("./test.xml", xml, function(err) {
            if(err) {
                return console.log(err);
            }
 
            console.log("The file was saved!");
        }); 
    }).catch(function(err){
      console.log('catch');
  });
    
})

/bodymovin-to-avd/

    Package Sidebar

    Install

    npm i bodymovin-to-avd

    Weekly Downloads

    10

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    375 kB

    Total Files

    24

    Last publish

    Collaborators

    • airnan