0.0.6 • Published 11 years ago

nodetype v0.0.6

Weekly downloads
3
License
-
Repository
github
Last release
11 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

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

12 years ago