{"_id":"check-type","_rev":"62-141dfc014b8f1380b986c5b21ad7643d","name":"check-type","description":"Library to check variable type and properties in object.","dist-tags":{"latest":"0.4.11"},"versions":{"0.1.0":{"name":"check-type","version":"0.1.0","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"description":"Library to check variable type and properties in object.","homepage":"https://github.com/alistairjcbrown/check-type","main":"./lib/","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"keywords":["util","type","check","checking","library"],"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"licenses":[{"type":"MIT","url":"https://raw.github.com/alistairjcbrown/check-type/master/LICENSE"}],"dependencies":{},"devDependencies":{"underscore":"latest","chai":"latest","grunt":"latest","grunt-contrib-jshint":"latest","grunt-mocha-test":"latest","mocha":"latest","sinon":"latest","sinon-chai":"latest"},"engines":{"node":">= 0.8.0"},"_id":"check-type@0.1.0","dist":{"shasum":"f33ba1426f39dc2fc57cd7cd9005caebbc7ced78","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.1.0.tgz","integrity":"sha512-wDzrATfzES9SVgqRkk6vKSNmuKXnCuySjazCJz5LfkXG/D1ALZGMxk1YdHxG0ZaJTu9mKS4vfCNwkZDVEW9WSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcaxwkuHut+K9nOmPUnztXKaEt1aExUbp5XiAlkeAqfAIhALnznVqsLMsgNP55r2fw0Wznuttw5yMg84mXGnGVaJ5M"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}]},"0.2.1":{"name":"check-type","version":"0.2.1","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"description":"Library to check variable type and properties in object.","homepage":"https://github.com/alistairjcbrown/check-type","main":"./lib/check-type","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"keywords":["util","type","check","checking","library"],"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"licenses":[{"type":"MIT","url":"https://raw.github.com/alistairjcbrown/check-type/master/LICENSE"}],"dependencies":{"underscore":"latest"},"devDependencies":{"chai":"latest","grunt":"latest","grunt-contrib-jshint":"latest","grunt-mocha-test":"latest","mocha":"latest","sinon":"latest","sinon-chai":"latest"},"engines":{"node":">= 0.8.0"},"_id":"check-type@0.2.1","dist":{"shasum":"92aeac0eb8ff4efe68aac7a9d508646c192c69b5","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.2.1.tgz","integrity":"sha512-8M9N8rSdUxt61/x6/mwnnHQaAYHncwb/B9gSOgpW2OZkI70838oirKzhmEzQVSG+F5pCLlIW+3LgB3Xuiy/gOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrpeJAytyDkeNvs2sWI2YH0NnLXqkQh/s/z0+YfMt90AIhAOuJRP0/oXL1/v3LOQXsaitA0tHSXOwyTWMT9oIiTjRv"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}]},"0.3.0":{"name":"check-type","version":"0.3.0","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"description":"Library to check variable type and properties in object.","homepage":"https://github.com/alistairjcbrown/check-type","main":"./lib/check-type","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"keywords":["util","type","check","checking","library"],"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"licenses":[{"type":"MIT","url":"https://raw.github.com/alistairjcbrown/check-type/master/LICENSE"}],"dependencies":{"underscore":"latest"},"devDependencies":{"chai":"latest","grunt":"latest","grunt-contrib-jshint":"latest","grunt-mocha":"latest","grunt-mocha-test":"latest","mocha":"latest","sinon":"latest","sinon-chai":"latest"},"engines":{"node":">= 0.8.0"},"_id":"check-type@0.3.0","dist":{"shasum":"1b2b370a2669151ce9a7dc10a898a03d3d829edd","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.3.0.tgz","integrity":"sha512-U8d5Wvu+arf29PkBIEGmCvyNhV9c6ZNYC5TmaegQteykC+DQSfSYCV7ze44tC48xdWtsZiLDDcStHtI8DoFOqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGhTSKI4OiA1xhgKWuHesPNHyWgiRmUd7fKE+ZTYcqPtAiEA/p10YmaAXDLfi6fzKY8Mk157GLiCaa0mvIWcnL2Q/FY="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}]},"0.3.1":{"name":"check-type","version":"0.3.1","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"description":"Library to check variable type and properties in object.","homepage":"https://github.com/alistairjcbrown/check-type","main":"./lib/check-type","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"keywords":["util","type","check","checking","library"],"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"licenses":[{"type":"MIT","url":"https://raw.github.com/alistairjcbrown/check-type/master/LICENSE"}],"dependencies":{"underscore":"latest"},"devDependencies":{"chai":"latest","grunt":"latest","grunt-contrib-jshint":"latest","grunt-mocha":"latest","grunt-mocha-test":"latest","mocha":"latest","sinon":"latest","sinon-chai":"latest"},"engines":{"node":">= 0.8.0"},"_id":"check-type@0.3.1","dist":{"shasum":"df4f8ba25d4652d097b6828832008462dbaa2f6e","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.3.1.tgz","integrity":"sha512-MNBgUibmYPBz+mTsb9aIzABRnt9jXpJCZN1qH0YtfNnYD9HRX0txmC83ZsX8sdb9J6lsZDFJxvHoW2zgSZ9hLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFc+VthLg/RW5cFMw3Ozro9jQGUP6ohbZGteSpb33gJSAiBWXg5Lw/35sSv83XpPDWcBLha9NgmI1+BI277SMjUYgQ=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}]},"0.4.0":{"name":"check-type","version":"0.4.0","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"description":"Library to check variable type and properties in object.","homepage":"https://github.com/alistairjcbrown/check-type","main":"./lib/check-type.js","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"keywords":["util","type","check","checking","library"],"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"licenses":[{"type":"MIT","url":"https://raw.github.com/alistairjcbrown/check-type/master/LICENSE"}],"dependencies":{"underscore":"latest"},"devDependencies":{"chai":"latest","grunt":"latest","grunt-contrib-jshint":"latest","grunt-mocha":"latest","grunt-mocha-test":"latest","grunt-sync-pkg":"latest","mocha":"latest","sinon":"latest","sinon-chai":"latest"},"engines":{"node":">= 0.8.0"},"_id":"check-type@0.4.0","dist":{"shasum":"ebc31ffcbac09ef31d2a66ed40e8905f61590b00","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.4.0.tgz","integrity":"sha512-WYfZUrK2tf/NLbgsQumT3mN9V+lXyf4x4KmzZzs8wmyhZrPUMvQwVeDFeSb/aYx84gBddHHXU2e53FZuFbkMjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzc8oFPYtSzHzfPKXahwjIrmRDEqpmj9q3QxojzbcY8QIhAIrTn4DL5MIveaTlr9WTezFpvu/PQrlfvcxSLgQ7aodU"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}]},"0.4.1":{"name":"check-type","version":"0.4.1","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"description":"Library to check variable type and properties in object.","homepage":"https://github.com/alistairjcbrown/check-type","main":"./lib/check-type.js","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"keywords":["util","type","check","checking","library"],"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"licenses":[{"type":"MIT","url":"https://raw.github.com/alistairjcbrown/check-type/master/LICENSE"}],"dependencies":{"underscore":"latest"},"devDependencies":{"chai":"latest","grunt":"latest","grunt-contrib-jshint":"latest","grunt-mocha":"latest","grunt-mocha-test":"latest","grunt-sync-pkg":"latest","grunt-toc":"latest","mocha":"latest","sinon":"latest","sinon-chai":"latest"},"engines":{"node":">= 0.8.0"},"_id":"check-type@0.4.1","dist":{"shasum":"c20f4bc38011c4bb444e1255c578903345ee846c","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.4.1.tgz","integrity":"sha512-AyYI2ylGUpnoOoEVOkY/toOWO6pEqgNn+AYQpf75RUF3ks0fdEycZZIyc58vCVQ1lAimiwaiIKb6izXmPKCYAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5g3JgiMgYTWVkg8WKSZVTGSxOQfEwKdhhv5OqDLPulwIhAIJ6jFr5ipi7zyoIAabZMHLzeOi+SYQf3ICrWYhSKXZM"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}]},"0.4.3":{"name":"check-type","description":"Library to check variable type and properties in object.","version":"0.4.3","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"contributors":[],"dependencies":{"underscore":"~1.6.0"},"devDependencies":{"chai":"~1.9.1","grunt":"~0.4.4","grunt-contrib-jshint":"~0.9.2","grunt-mocha":"~0.4.10","grunt-mocha-test":"~0.10.0","grunt-nice-package":"~0.3.0","grunt-sync-pkg":"~0.1.2","grunt-toc":"~0.1.0","mocha":"~1.18.2","sinon":"~1.9.0","sinon-chai":"~2.5.0"},"engines":{"node":">= 0.8.0"},"homepage":"https://github.com/alistairjcbrown/check-type","keywords":["util","type","check","checking","library"],"license":"MIT","main":"./lib/check-type.js","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"_id":"check-type@0.4.3","dist":{"shasum":"732c0f1a1abee1b4dbec8c9ebe204479bebd655d","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.4.3.tgz","integrity":"sha512-y6Z/JYKQggwGtT2N2I3D4ZAA/DArb5lzOs3/hndGVvIQAb6LZ3jKhsvgaxGlbeMzKJC6KnXushHWfhEmewfXiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiCwuaGhXyEm4OgaAgywe8KyFzR8++DHhi+nOvlhWWlwIhAMgRvvGPcgikCvQcG0jAOn8Oic/HHlHvTYX+dOzXvWFS"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}]},"0.4.4":{"name":"check-type","description":"Library to check variable type and properties in object.","version":"0.4.4","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"contributors":[],"dependencies":{"underscore":"~1.6.0"},"devDependencies":{"bower":"~1.3.1","chai":"~1.9.1","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-contrib-jshint":"~0.9.2","grunt-mocha":"~0.4.10","grunt-mocha-test":"~0.10.0","grunt-nice-package":"~0.3.0","grunt-toc":"~0.1.0","grunt-update-json":"~0.1.3","load-grunt-tasks":"~0.4.0","mocha":"~1.18.2","sinon":"~1.9.0","sinon-chai":"~2.5.0"},"engines":{"node":">=0.10"},"homepage":"https://github.com/alistairjcbrown/check-type","keywords":["util","type","check","checking","library"],"license":"MIT","main":"./lib/check-type.js","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"scripts":{"postinstall":"./node_modules/bower/bin/bower install","test":"./node_modules/grunt-cli/bin/grunt test"},"_id":"check-type@0.4.4","dist":{"shasum":"767cb7da426776047096ef97085074a16c791208","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.4.4.tgz","integrity":"sha512-nZ8UyAOgerXOx5Zcj7YZ6KnAHxUT0pjqZxS2QWMuOKOrq2BLNFMcyegz7/Sod041t+m398SKdlg5buarfWCl6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGKInGjR1v0XPJsCAQJSbRpBnx9QloAWntfZB0OsH1YdAiARrOfLFJYKAx1mFoa4GzQUCZDPDwSEIJiXluvvcFSa1g=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}]},"0.4.5":{"name":"check-type","description":"Library to check variable type and properties in object.","version":"0.4.5","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"contributors":[],"dependencies":{"underscore":"~1.6.0"},"devDependencies":{"bower":"~1.3.1","chai":"~1.9.1","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-contrib-jshint":"~0.9.2","grunt-contrib-uglify":"~0.4.0","grunt-mocha":"~0.4.10","grunt-mocha-test":"~0.10.0","grunt-nice-package":"~0.3.0","grunt-toc":"~0.1.0","grunt-update-json":"~0.1.3","load-grunt-tasks":"~0.4.0","mocha":"~1.18.2","sinon":"~1.9.0","sinon-chai":"~2.5.0"},"engines":{"node":">=0.10"},"homepage":"https://github.com/alistairjcbrown/check-type","keywords":["util","type","check","checking","library"],"license":"MIT","main":"check-type.min.js","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"scripts":{"postinstall":"./node_modules/bower/bin/bower install","test":"./node_modules/grunt-cli/bin/grunt test"},"_id":"check-type@0.4.5","dist":{"shasum":"0e324a281be077650fe34d35eff14c30bf734464","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.4.5.tgz","integrity":"sha512-4qpsrDZBITdbu7BaWf4aAHV5xzJwX9fkM4z/TK0DOeDwBIDoTphOR5o73MmVeaHI8GK+TrocEtC4q9bQTpoh3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx+cfqfeGVbnIOBIf2gxSnhG+aazeumeTYcJbE/iyBfgIgBC39ZS6gw+3Z97pEX3Pmy0Byj3IGODDTDt6IsCx12Ic="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}]},"0.4.6":{"name":"check-type","description":"Library to check variable type and properties in object.","version":"0.4.6","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"contributors":[],"dependencies":{"underscore":"~1.6.0"},"devDependencies":{"bower":"~1.3.1","chai":"~1.9.1","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-contrib-jshint":"~0.9.2","grunt-contrib-uglify":"~0.4.0","grunt-mocha":"~0.4.10","grunt-mocha-test":"~0.10.0","grunt-nice-package":"~0.3.0","grunt-toc":"~0.1.0","grunt-update-json":"~0.1.3","load-grunt-tasks":"~0.4.0","mocha":"~1.18.2","sinon":"~1.9.0","sinon-chai":"~2.5.0"},"engines":{"node":">=0.10"},"homepage":"https://github.com/alistairjcbrown/check-type","keywords":["util","type","check","checking","library"],"license":"MIT","main":"check-type.min.js","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"scripts":{"postinstall":"[ -f ./node_modules/bower/bin/bower ] && ./node_modules/bower/bin/bower install","test":"./node_modules/grunt-cli/bin/grunt test"},"_id":"check-type@0.4.6","dist":{"shasum":"9611291f1c88f7bab50a7843695a0bed02094fa0","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.4.6.tgz","integrity":"sha512-3OBP5xJeE5fGLPBPv5wzdSHCPS7eTGKeTdWKhmaOO+Drzn/Z40wpBfsgMjLpiUJiLl6UBjnHE1fnXmc4ZhxGAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHmv6VAXykS9Z1YPL3nCKTVOL5rIvlp0AKF/y2fXNXmnAiEAvf7OeF2u38JI/EnIedAI28uL4s8GrVi5QwFie5AIsxs="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}]},"0.4.7":{"name":"check-type","description":"Library to check variable type and properties in object.","version":"0.4.7","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"contributors":[],"dependencies":{"underscore":"~1.6.0"},"devDependencies":{"bower":"~1.3.1","chai":"~1.9.1","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-contrib-jshint":"~0.9.2","grunt-contrib-uglify":"~0.4.0","grunt-mocha":"~0.4.10","grunt-mocha-test":"~0.10.0","grunt-nice-package":"~0.3.0","grunt-toc":"~0.1.0","grunt-update-json":"~0.1.3","load-grunt-tasks":"~0.4.0","mocha":"~1.18.2","sinon":"~1.9.0","sinon-chai":"~2.5.0"},"engines":{"node":">=0.10"},"homepage":"https://github.com/alistairjcbrown/check-type","keywords":["util","type","check","checking","library"],"license":"MIT","main":"check-type.min.js","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"scripts":{"postinstall":"[ -f ./node_modules/bower/bin/bower ] && ./node_modules/bower/bin/bower install; exit 0;","test":"./node_modules/grunt-cli/bin/grunt test"},"_id":"check-type@0.4.7","dist":{"shasum":"bea6367490d019d7bbb5758c003c881fa510a85d","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.4.7.tgz","integrity":"sha512-C7Mn481KGUEannt3UX0bTDkZCzAffL4AGHthjimbCuDimLLXVWiMZ/Uqg3YupHvE6gZnLiMZQc6WK28q17x4Dw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDdx09MibwOzGPjE6AJuj79tt9MxOJ3mAp+d7fm3zcmyAiEAihKJnkq/aNL8Jq7vWWPjqWVJCECwsQZz1GbJqY8sVCs="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}]},"0.4.8":{"name":"check-type","description":"Library to check variable type and properties in object.","version":"0.4.8","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"contributors":[],"dependencies":{"underscore":"1.6.0"},"devDependencies":{"bower":"1.3.1","chai":"1.9.1","grunt":"0.4.4","grunt-cli":"0.1.13","grunt-contrib-jshint":"0.10.0","grunt-contrib-uglify":"0.4.0","grunt-mocha":"0.4.10","grunt-mocha-test":"0.10.0","grunt-nice-package":"0.5.2","grunt-toc":"0.1.0","grunt-update-json":"0.1.3","load-grunt-tasks":"0.4.0","mocha":"1.19.0","sinon":"1.10.0","sinon-chai":"2.5.0"},"engines":{"node":">=0.10"},"homepage":"https://github.com/alistairjcbrown/check-type","keywords":["util","type","check","checking","library"],"license":"MIT","main":"check-type.min.js","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"scripts":{"postinstall":"[ -f ./node_modules/bower/bin/bower ] && ./node_modules/bower/bin/bower install; exit 0;","test":"./node_modules/grunt-cli/bin/grunt test"},"gitHead":"28489fa6f6133ed96e90ecfa3b36fcc950342ae0","_id":"check-type@0.4.8","_shasum":"5bf75aa09a066f6495842fb0965554972862161d","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}],"dist":{"shasum":"5bf75aa09a066f6495842fb0965554972862161d","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.4.8.tgz","integrity":"sha512-tkmfjB8eONbj4h91wJJJ1/l4y3ZC9z8Vsp5Sz6EqymIQWGez1yshkOcf+pOhllxbinJGoriM/pMxjagCX/xEkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDyJad8DvMx6WsR5LW28Ihvq3mKklPwwHd4fpLfpiWo3AiBvMO6olNOCeT4Qj5/Td/I+AMTHbx0AWBeGBt6F3yLcZg=="}]}},"0.4.9":{"name":"check-type","description":"Library to check variable type and properties in object.","version":"0.4.9","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"contributors":[],"dependencies":{"underscore":"1.6.0"},"devDependencies":{"bower":"1.3.3","chai":"1.9.1","grunt":"0.4.5","grunt-cli":"0.1.13","grunt-contrib-jshint":"0.10.0","grunt-contrib-uglify":"0.4.0","grunt-mocha":"0.4.10","grunt-mocha-test":"0.10.2","grunt-nice-package":"0.5.2","grunt-toc":"0.1.0","grunt-update-json":"0.1.3","load-grunt-tasks":"0.4.0","mocha":"1.19.0","sinon":"1.10.0","sinon-chai":"2.5.0"},"engines":{"node":">=0.10"},"homepage":"https://github.com/alistairjcbrown/check-type","keywords":["util","type","check","checking","library"],"license":"MIT","main":"check-type.min.js","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"scripts":{"postinstall":"[ -f ./node_modules/bower/bin/bower ] && ./node_modules/bower/bin/bower install; exit 0;","test":"./node_modules/grunt-cli/bin/grunt test"},"gitHead":"52a6f334c4e0faea2b576121c6ea28b1b79953e2","_id":"check-type@0.4.9","_shasum":"7ce57351bc54d3274d0f56c9c660a187f366f413","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}],"dist":{"shasum":"7ce57351bc54d3274d0f56c9c660a187f366f413","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.4.9.tgz","integrity":"sha512-RGzCeAdYzHfXEV66sekAjXiMKRzmgBbZ4uWDXgoRCS72aUBvF02+DFvZ0g2NZVJ064l/TEEGLqRf8ftd3z2lXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwIS0pHdJe7KQ0RIE6UXE6fslL9A2UOOEPsymNrxef1QIhAMBg84GqM/5+GQtbmyOZRV7LgLo9qdDppymjIuMKX4et"}]}},"0.4.10":{"name":"check-type","description":"Library to check variable type and properties in object.","version":"0.4.10","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"contributors":[],"dependencies":{"underscore":"1.6.0"},"devDependencies":{"chai":"1.9.1","grunt":"0.4.5","grunt-contrib-jshint":"0.10.0","grunt-contrib-uglify":"0.5.0","grunt-mocha":"0.4.11","grunt-mocha-test":"0.11.0","grunt-nice-package":"0.5.2","grunt-toc":"0.1.0","grunt-update-json":"0.1.3","load-grunt-tasks":"0.5.0","mocha":"1.20.1","shelljs":"0.3.0","sinon":"1.10.2","sinon-chai":"2.5.0"},"engines":{"node":">=0.10"},"homepage":"https://github.com/alistairjcbrown/check-type","keywords":["util","type","check","checking","library"],"license":"MIT","main":"check-type.min.js","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"scripts":{"test":"grunt go"},"gitHead":"151ae71d64b136f781bc72d4e4f7233ca97c39a4","_id":"check-type@0.4.10","_shasum":"6c2dfa1377929011e17b7071bace06a00cb0f557","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}],"dist":{"shasum":"6c2dfa1377929011e17b7071bace06a00cb0f557","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.4.10.tgz","integrity":"sha512-YT53oNDRn9p8NuLCWaH618poFs6a/5IpYhObgIkfRNP14zGwZHp5nq9YcJo4OrdyNvIJ/fSGhrSDsJwk1WwXuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYpgewztRC+2AaBLnCZWqSUi+0KY94tbdFLoXodJaaQAIgZHYrY5IXy8W95XUc9JXoUYV4/L6oKkgT8A6tfohuExk="}]}},"0.4.11":{"name":"check-type","description":"Library to check variable type and properties in object.","version":"0.4.11","author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"contributors":[],"dependencies":{"underscore":"1.6.0"},"devDependencies":{"chai":"1.9.1","grunt":"0.4.5","grunt-contrib-jshint":"0.10.0","grunt-contrib-uglify":"0.5.0","grunt-keybase-dir":"0.1.0","grunt-mocha":"0.4.11","grunt-mocha-test":"0.11.0","grunt-nice-package":"0.5.2","grunt-toc":"0.1.0","grunt-update-json":"0.1.3","load-grunt-tasks":"0.5.0","mocha":"1.20.1","sinon":"1.10.2","sinon-chai":"2.5.0"},"engines":{"node":">=0.10"},"homepage":"https://github.com/alistairjcbrown/check-type","keywords":["util","type","check","checking","library"],"license":"MIT","main":"check-type.min.js","repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"scripts":{"test":"grunt go"},"gitHead":"4d3e7dabb3e7487202228beb60c075b6f66477d7","_id":"check-type@0.4.11","_shasum":"abe3f534a51d31f5ce5726347bb74c0d0f910ccf","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"},"maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}],"dist":{"shasum":"abe3f534a51d31f5ce5726347bb74c0d0f910ccf","tarball":"https://registry.npmjs.org/check-type/-/check-type-0.4.11.tgz","integrity":"sha512-dtbWcp8jwTktDzqdOPPAKmgjQD0nrINuKrOu7bZPA3bCaEFJ00OMfFpsO6txy1y+09P9sp6tQq7T5ons/HcNYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDY4WvXEc9uPiLyuHfSfH7ZXJC+K8jjRvCEcH+KAzObLAiBzVUjZXz4s2Ed1MxCbP/c8ud/rPLWC9ys0YQwpSJUxGQ=="}]}}},"readme":"# Check Type\n\n[![Build Status](https://travis-ci.org/alistairjcbrown/check-type.svg?branch=master)](https://travis-ci.org/alistairjcbrown/check-type)\n[![GitHub version](https://badge.fury.io/gh/alistairjcbrown%2Fcheck-type.svg)](http://badge.fury.io/gh/alistairjcbrown%2Fcheck-type)\n[![Dependency Status](https://david-dm.org/alistairjcbrown/check-type.svg?theme=shields.io)](https://david-dm.org/alistairjcbrown/check-type)\n[![devDependency Status](https://david-dm.org/alistairjcbrown/check-type/dev-status.svg?theme=shields.io)](https://david-dm.org/alistairjcbrown/check-type#info=devDependencies)\n\nA type checking framework for Javascript.\n\nCheck type lets you check variable types and structures with the format `check(x).is(\"y\")` and `check(x).has(\"a.b\")`\n\n\n---\n\n## Table of Contents\n\n  * [Dependencies](#dependencies)\n  * [Installation](#installation)\n    * [Node.js](#nodejs)\n    * [Bower](#bower)\n    * [Component](#component)\n    * [Manual](#manual)\n  * [Use](#use)\n    * [Node.js](#nodejs)\n    * [Browser](#browser)\n    * [RequireJS](#requirejs)\n  * [Testing](#testing)\n    * [Test in Node.js](#test-in-nodejs)\n    * [Test in Browser](#test-in-browser)\n  * [No Conflict](#no-conflict)\n  * [Init](#init)\n    * [Simple use](#simple-use)\n    * [More complex use](#more-complex-use)\n  * [Clear](#clear)\n  * [Type checking](#type-checking)\n    * [Example: Checking for string using `is`](#example-checking-for-string-using-is)\n    * [Example: Checking for string using `is.not`](#example-checking-for-string-using-isnot)\n  * [Object path checking](#object-path-checking)\n    * [Example: Checking object path using `has`](#example-checking-object-path-using-has)\n  * [Object structure checking](#object-structure-checking)\n    * [Example: Checking object properties using `matches`](#example-checking-object-properties-using-matches)\n  * [Complex example](#complex-example)\n      * [Set up `check-type`](#set-up-check-type)\n      * [Retrieve username and password from authentication request](#retrieve-username-and-password-from-authentication-request)\n  * [Contact](#contact)\n\n---\n\n\n## Dependencies\n\n * [Underscore.js](http://underscorejs.org/).\n\n\n\n## Installation\n\n### Node.js\n\n`check-type` is available through the [npm package manager](https://npmjs.org/package/check-type).\n\n[![NPM version](https://badge.fury.io/js/check-type.svg)](http://badge.fury.io/js/check-type)\n\nFor Node.js package management, you can install [using npm](https://www.npmjs.org/).\n\n```\nnpm install check-type\n```\n\n### Bower\n\n`check-type` is available through the [bower package manager](http://bower.io/search/?q=check-type).\n\n[![Bower version](https://badge.fury.io/bo/check-type.svg)](http://badge.fury.io/bo/check-type)\n\nFor front-end package management, you can install [using Bower](http://bower.io/).\n\n```\nbower install check-type\n```\n\n### Component\n\n`check-type` is available through the [component package manager](http://component.io/alistairjcbrown/check-type).\n\nFor package management, you can install [using Component](https://github.com/component/component#installation).\n\n```\ncomponent install alistairjcbrown/check-type\n```\n\n### Manual\n\nFor manual management, you can grab the Javascript file directly or clone the git repository.\nYou will need to grab `underscore.js` as well.\n\n```\n# Grab the file\nwget https://raw.githubusercontent.com/alistairjcbrown/check-type/master/check-type.min.js\n\n# Clone the repo\ngit clone git@github.com:alistairjcbrown/check-type.git\n```\n\n\n## Use\n\n### Node.js\n\n```js\nvar check = require(\"check-type\").init();\n```\n\nThe module can be required using Node.js built in `require` ([See example](lib/examples/nodejs)).\n\n\n### Browser\n\n```html\n<script src=\"/path/to/underscore\"></script>\n<script src=\"/path/to/check-type/check-type.min.js\"></script>\n<script>\n    check.init();\n</script>\n```\n\nThe module can be used in the browser through the `<script>` tag and will bind to `window` ([See example](lib/examples/browser)).\n\n\n### RequireJS\n\nThe module supports the AMD format and uses `define` if available. Therefore it can be used as a RequireJS module ([See Browser example](lib/examples/requirejs/browser), [See Node.js example](lib/examples/requirejs/nodejs)).\n\n```js\ndefine([ \"check-type\" ], function(check) {\n    check.init();\n});\n```\n\n\n## Testing\n\nBuilt in tests and linting using [Grunt](http://gruntjs.com/) to call [JSHint](http://www.jshint.com/about/) and [Mocha](http://visionmedia.github.io/mocha/).\n\nGet all of the developer dependecies by running:\n\n```\nnpm install           # install dev dependencies\n```\n\n### Test in Node.js\n\n```\ngrunt lint            # Lint the code with JSHint\ngrunt test --nodejs   # Run all tests in node.js\ngrunt test --browser  # Run all tests in phantomjs\ngrunt test            # Run all tests in both environments\ngrunt go              # Run everything above\n```\n\n### Test in Browser\n\nOpen `lib/test/check-type.test.html` in browser\n\n\n\n## No Conflict\n\nTo prevent conlicts with other libraries using `window.check`, if `check-type` binds to `window` it will also provide a `check.noConflict` function to restore the variable to its previous value.\n\n`check-type` will only bind to `window` in the browser environment when RequireJS is not available.\n\n\n## Init\n\n`check-type` does not come with type checking functionality. Instead, it simply provides the `check` interface. Type checking functions should be  provided when calling `check.init`.\n\n`check.init` can be called without parameters which will use the type checking functions from [Underscore.js](http://underscorejs.org/).\n\n`check.init` can be called multiple times and will add type checking functions which have not already been defined.\nTo override a previously defined type checking function, pass boolean `true` as the second parameter.\n\n### Simple use\n\n```js\nvar check = require(\"check-type\").init();\n```\n\n### More complex use\n\n```js\nvar check = require(\"check-type\"),\n    custom_functions = {\n        \"isEmail\": function(value) {\n            return value.indexOf(\"@\") !== -1\n        },\n        \"isEmpty\": function(value) {\n            return value === \"empty\";\n        }\n    },\n\n// Initialise check with underscore type checking functions\n//  and custom checking functions, overriding underscore's isEmpty function\ncheck.init()\n     .init(custom_functions, true);\n```\n\n## Clear\n\nThis clears all of the internal stored type checking functions.\n\n```js\ncheck.clear();\n```\n\n\n## Type checking\n\nOnce the `check` function has been initialised, it can utilise any defined type checking functions using `is`.\n\n### Example: Checking for string using `is`\n\n```js\nvar my_string = \"hello world\";\ncheck.init();\n\ncheck(my_string).is(\"string\"); // true\ncheck(my_string).is(\"number\"); // false\n\ncheck(my_string).is(\"foo\");    // throws Error for unsupported type\n```\n\nYou can also negate the check with `is.not`\n\n### Example: Checking for string using `is.not`\n\n```js\nvar my_string = \"hello world\";\ncheck.init();\n\ncheck(my_string).is.not(\"string\"); // false\ncheck(my_string).is.not(\"number\"); // true\n\ncheck(my_string).is.not(\"foo\");    // throws Error for unsupported type\n```\n\n\n## Object path checking\n\n`check-type` can check for the presence of values within an object under a particular path.\n\n### Example: Checking object path using `has`\n\n```js\nvar my_object = {\n    hello: {\n        world: false\n    }\n};\n\ncheck(my_object).has(\"hello.world\"); // true\ncheck(my_object).has(\"foo.bar\");     // false\n```\n\n\n## Object structure checking\n\n`check-type` can check an object properties for specific types\n\n### Example: Checking object properties using `matches`\n\n```js\nvar my_object = {\n    \"customer_number\": 123456789,\n    \"password\":        \"abc123\"\n};\n\ncheck(my_object).matches({\n    \"customer_number\": \"number\",\n    \"password\":        \"string\"\n});\n// true\n\ncheck(my_object).matches({\n    \"username\": \"string\",\n    \"password\": \"string\"\n});\n// false\n```\n\n\n## Complex example\n\nThe functionality of `check` can be used in combination, for example when validating response data.\n\nSee the example below as a [jsfiddle](http://jsfiddle.net/alistairjcbrown/B9AHu/).\n\n#### Set up `check-type`\n\n```js\nvar custom_types = {};\n\ncustom_types.isUsername = function(value) {\n    return /^\\w+$/.test(value);\n};\n\ncustom_types.isAuthObject = function(value) {\n    return check(value).matches({\n        \"username\": \"username\",\n        \"password\": \"string\"\n    });\n};\n\n// Initialise with underscorejs functions\ncheck.init();\n\n// Add custom functions too\ncheck.init(custom_types);\n```\n\n#### Retrieve username and password from authentication request\n\n```js\nfunction handleAuthentication(request) {\n    var username, password;\n\n    if (check(request).has(\"auth\") &&\n        check(request.auth).is(\"AuthObject\")) {\n\n        username = request.auth.username;\n        password = request.auth.password;\n\n        return {\n            username: username,\n            password: password\n        };\n\n    }\n\n    return false;\n}\n```\n\n## Contact\n\nTwitter [@alistairjcbrown](http://twitter.com/alistairjcbrown)\n\nCode signed using [keybase](SIGNED.md) as [alistairjcbrown](https://keybase.io/alistairjcbrown). Verify with `keybase dir verify`","maintainers":[{"name":"alistairjcbrown","email":"npm@alistairjcbrown.com"}],"time":{"modified":"2022-06-13T05:55:52.747Z","created":"2014-03-24T00:21:52.626Z","0.1.0":"2014-03-24T00:21:53.810Z","0.2.1":"2014-03-25T23:17:11.130Z","0.3.0":"2014-03-26T23:59:38.979Z","0.3.1":"2014-03-27T00:05:13.120Z","0.4.0":"2014-03-28T00:50:05.626Z","0.4.1":"2014-03-28T19:47:47.248Z","0.4.3":"2014-03-29T15:04:57.011Z","0.4.4":"2014-03-31T18:47:29.184Z","0.4.5":"2014-04-01T23:05:03.432Z","0.4.6":"2014-04-01T23:27:25.310Z","0.4.7":"2014-04-01T23:40:21.750Z","0.4.8":"2014-05-26T18:43:23.337Z","0.4.9":"2014-05-26T20:52:53.891Z","0.4.10":"2014-06-12T22:36:15.394Z","0.4.11":"2014-06-27T23:29:02.780Z"},"readmeFilename":"README.md","homepage":"https://github.com/alistairjcbrown/check-type","keywords":["util","type","check","checking","library"],"repository":{"type":"git","url":"git://github.com/alistairjcbrown/check-type.git"},"author":{"name":"Alistair Brown","email":"github@alistairjcbrown.com"},"bugs":{"url":"https://github.com/alistairjcbrown/check-type/issues"},"contributors":[],"license":"MIT","users":{"skylerto":true,"fly19890211":true}}