nodetype

0.0.6 • Public • Published

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));

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.6
    0
    • latest

Version History

Package Sidebar

Install

npm i nodetype

Weekly Downloads

0

Version

0.0.6

License

BSD

Last publish

Collaborators

  • poying