{"name":"checkup","version":"1.2.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"check arguments and if they wrong throw exeption","homepage":"http://github.com/coderaiser/node-checkup","repository":{"type":"git","url":"git://github.com/coderaiser/node-checkup.git"},"dependencies":{},"license":"MIT","engines":{"node":">=0.8"},"main":"lib/check.js","gitHead":"2c5e714fbfcb46f3f618336f02ee7e75f2908d87","bugs":{"url":"https://github.com/coderaiser/node-checkup/issues"},"_id":"checkup@1.2.1","scripts":{},"_shasum":"174a7420c85c47a3212a93aab3ae5c81bdb9a340","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"dist":{"shasum":"174a7420c85c47a3212a93aab3ae5c81bdb9a340","tarball":"http://registry-npm.ywwl.com/checkup/download/checkup-1.2.1.tgz","integrity":"sha512-ug+CiXIq6GzOTdb4GyUC6FPOy6i2Z0iLgW5RkWpcZJDjFtskoiSRC7zpt+P8CzpWmgItGpwyySI7F35xslhg/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDObnZy6I3bdcEGsif5x3UeHDAhG8k3bdpttIXTkl8wfAiEAhrkjM2T2vVBEuAARPyYG9ASc//J7bo8jszuskg/jLf0="}],"size":2339,"noattachment":false,"key":"/checkup/-/checkup-1.2.1.tgz"},"directories":{},"readme":"# Checkup\n\nCheck arguments and if they wrong throw exeption.\n\n## Install\n\n```\nnpm i chukup --save\n```\n\n## How to use?\n\n```js\nvar check   = require('checkup');\n\nfunction someFn(arg1, arg2, arg3) {\n    check({\n        arg1: arg1,\n        arg2, arg2\n        arg3: arg3\n    });\n}\n\nfunction showName(name, callback) {\n    check(arguments, ['name'])\n    .check(arguments, ['callback'])\n    .type('name', name, 'string')\n    .type('callback', callback, 'function');\n\n    console.log('every thing is ok:', name);\n}\n\nfunction callCallback(callback) {\n    check([callback], ['callback'])\n    .type('callback', callback, 'function');\n    \n    callback();\n}\n\n```\n\n## License\n\nMIT\n","publish_time":1433837612228,"_cnpm_publish_time":1433837612228,"dist-tags":{"latest":"1.3.0"}}