This package has been deprecated

Author message:

Removed as dependency from f1

f1-parser

2.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i f1-parser

Weekly Downloads

0

Version

2.0.1

License

MIT

Last publish

Collaborators

  • mikkoh