f1-parser
This module has been deprecated since it's been brought into the f1
module so it's not an external dep.
Parse data from one object to another using a predefined function.
This is used in the module f1
to parse and apply animation data to a dom element or another rendereable object (pixi, threejs, etc).
Usage
Example:
var Parser = require( 'f1-parser' );
var parser = new Parser();
var out = {};
parser.teach( function( item, data ) {
item.var1 = data.var1 + 1;
});
parser.parse( out, { var1: 33 } );
console.log( out.var1 ); // 34
License
MIT, see LICENSE.md for details.