0.0.6 • Published 13 years ago

nodetype v0.0.6

Weekly downloads
3
License
-
Repository
github
Last release
13 years ago

NODE-TYPE

Installation

npm install nodetype

Usage

// nodetype.check(type, value, convert);
nodetype.check('Boolean', 'True', true);


function MyObject () {
	this.hello = 'world';
	this.world = 'hello';
}

nodetype.set('MyObject', function (val) {
	return (val.hello || undefined) === 'world' && (val.world || undefined) === 'hello';
});

var myobj = new MyObject;

console.log(nodetype.check('MyObject', myobj));
0.0.6

13 years ago

0.0.5

13 years ago

0.0.4

13 years ago

0.0.3

13 years ago

0.0.2

13 years ago

0.0.1

13 years ago

0.0.0

13 years ago