Breed is a Helper Module which makes working with types and typeof as easy as it should be.
You are even able to extend Breed with your own Functions.
You can find the complete Documentation here
Install the module with: npm install breed
var breed = require('breed');
function Person () {}
breed.register(Person);
breed.isObject(new Person()); // true
breed.isPerson(new Person()); // true
breed.isArray(new Person()); // false
breed.isntPerson(new Person()); // false
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt:
- Available Tasks:
- jshint
- nodeunit
- default (jshint + nodeunit)
-
0.3.1
- Deploy new Doc
-
0.3.0
- Refactor for more performance
-
0.2.1
- Move Documentation to http://hereandnow.github.com/node-breed/
- Fix some typos in Docs
-
0.2.0
- Implement JSON, NaN, Finite
- author breed.register()
- rename breed.get() to breed.is()
- 0.1.0 Initial Release
Copyright (c) 2013 Bastian Behrens Licensed under the MIT license.