1.0.8 • Published 5 years ago

bodymovin-to-avd v1.0.8

Weekly downloads
11
License
ISC
Repository
github
Last release
5 years ago

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

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago