Skip to content

bodymovin/bodymovin-to-avd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');
 	});
	
})

About

Bodymovin to AVD converter

Resources

License

Stars

Watchers

Forks

Packages

No packages published