2.0.1 • Published 9 years ago

f1-parser v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

f1-parser

This module has been deprecated since it's been brought into the f1 module so it's not an external dep.

experimental

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

NPM

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.

2.0.1

9 years ago

2.0.0

9 years ago

1.0.0

9 years ago