Skip to content

hereandnow/node-breed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Breed

build status

About

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

Contributing

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)

Release History

  • 0.3.1

    • Deploy new Doc
  • 0.3.0

    • Refactor for more performance
  • 0.2.1

  • 0.2.0

    • Implement JSON, NaN, Finite
    • author breed.register()
    • rename breed.get() to breed.is()
  • 0.1.0 Initial Release

License

Copyright (c) 2013 Bastian Behrens Licensed under the MIT license.

About

node.js-module for type-checking where you even can add your own constructor-functions

Resources

License

Stars

Watchers

Forks

Packages

No packages published