{"dist":{"shasum":"cbb7cccd549febfff24f217d2186643c037d38e1","tarball":"https://registry.npmjs.org/typely/-/typely-0.0.0.tgz","integrity":"sha512-chtRLDVspVOkjK+ERP9TKCtB/tc61Dg/LEOTtUXuA3pj0xehnh3/3cJbJc3nzGX0OXu9nvYB2cnJvccZefhg2w==","signatures":[{"sig":"MEUCIQCH3IHmkZDv3YfPGntzRqMEsTQRxdEYru9beqwdYpofGAIgNLpkFxVZJj37e8BYkafQQgT7GFJrKPunuFgDt+6BnaA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.coffee","name":"typely","author":{"name":"Dan Yoder","email":"danielyoder@gmail.com"},"readme":"# typely\n\nA lightweight (read: relatively fast) type-checking library in CoffeeScript.\n\n    {overload} = require \"typely\"\n\n    class Multiplier \n  \n      total: 1\n  \n      multiply: overload (match) ->\n        match \"array\", (array) -> @multiply element for element in array\n        match \"number\", (number) -> @total *= number\n    \n    multiplier = new Multiplier\n\n    multiplier.multiply 2\n    multiplier.multiply [ 3, 4, 5 ]\n\n    console.log multiplier.total\n    \nTypely is limited to checking for types, [as per Douglas Crockford's `typeOf` function][0]. That is: null, undefined, boolean, number, string, date, regexp, array, object, and function. This limitation allows it to run relatively fast, by simply using as an index a string based on the types of the given arguments and seeing whether it returns a function.\n\n## Installation\n\n    npm install typely","license":"MIT","scripts":{"test":"coffee test.coffee"},"_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"keywords":["type-checking","coffeescript",""],"repository":{"url":"git://github.com/dyoder/typely.git","type":"git"},"_npmVersion":"1.1.65","description":"Lightweight (meaning relatively fast) type-checking in CoffeeScript. ","maintainers":[{"name":"dyoder","email":"danielyoder@gmail.com"}],"dependencies":{"fairmont":"~0.4.1"},"readmeFilename":"README.md","_id":"typely@0.0.0","version":"0.0.0"}