{"name":"validate.io-function","version":"1.0.2","description":"Validates if a value is a function.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"mocha","test-cov":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coverage -- -R spec","coveralls":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coveralls/coverage --report lcovonly -- -R spec && cat ./reports/coveralls/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./reports/coveralls"},"main":"./lib","repository":{"type":"git","url":"git://github.com/validate-io/function.git"},"keywords":["validate.io","validate","validation","validator","valid","function","is","isfunction"],"bugs":{"url":"https://github.com/validate-io/function/issues"},"dependencies":{},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"^2.5.10","jshint-stylish":"^1.0.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"bf20b216ebe25399b75ab664b8eeb7f2055b94e7","homepage":"https://github.com/validate-io/function","_id":"validate.io-function@1.0.2","_shasum":"343a19802ed3b1968269c780e558e93411c0bad7","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"343a19802ed3b1968269c780e558e93411c0bad7","tarball":"http://registry-npm.ywwl.com/validate.io-function/download/validate.io-function-1.0.2.tgz","integrity":"sha512-LlFybRJEriSuBnUhQyG5bwglhh50EpTL2ul23MPIuR1odjO7XaMLFV8vHGwp7AZciFxtYOeiSCT5st+XSPONiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBheUNl0nG+bXYYPto0s+CK3FNtImssFHCF/eEjWpiuPAiEAy59uZjYbttcgrlKObrWfffBvjAy8euixAQ3IhrUNgLg="}],"size":2458,"noattachment":false,"key":"/validate.io-function/-/validate.io-function-1.0.2.tgz"},"directories":{},"readme":"Function\n===\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependencies][dependencies-image]][dependencies-url]\n\n> Validates if a value is a function.\n\n\n## Installation\n\n``` bash\n$ npm install validate.io-function\n```\n\nFor use in the browser, use [browserify](https://github.com/substack/node-browserify).\n\n\n## Usage\n\n``` javascript\nvar isFunction = require( 'validate.io-function' );\n```\n\n#### isFunction( value )\n\nValidates if a `value` is a `function`.\n\n``` javascript\nvar value = function beep(){};\n\nvar bool = isFunction( value );\n// returns true\n```\n\n\n## Examples\n\n``` javascript\nconsole.log( isFunction( function foo(){} ) );\n// returns true\n\nconsole.log( isFunction( {} ) );\n// returns false\n```\n\nTo run the example code from the top-level application directory,\n\n``` bash\n$ node ./examples/index.js\n```\n\n\n## Tests\n\n### Unit\n\nUnit tests use the [Mocha](http://mochajs.org) test framework with [Chai](http://chaijs.com) assertions. To run the tests, execute the following command in the top-level application directory:\n\n``` bash\n$ make test\n```\n\nAll new feature development should have corresponding unit tests to validate correct functionality.\n\n\n### Test Coverage\n\nThis repository uses [Istanbul](https://github.com/gotwarlost/istanbul) as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:\n\n``` bash\n$ make test-cov\n```\n\nIstanbul creates a `./reports/coverage` directory. To access an HTML version of the report,\n\n``` bash\n$ make view-cov\n```\n\n\n---\n## License\n\n[MIT license](http://opensource.org/licenses/MIT). \n\n\n## Copyright\n\nCopyright &copy; 2014. Athan Reines.\n\n\n[npm-image]: http://img.shields.io/npm/v/validate.io-function.svg\n[npm-url]: https://npmjs.org/package/validate.io-function\n\n[travis-image]: http://img.shields.io/travis/validate-io/function/master.svg\n[travis-url]: https://travis-ci.org/validate-io/function\n\n[coveralls-image]: https://img.shields.io/coveralls/validate-io/function/master.svg\n[coveralls-url]: https://coveralls.io/r/validate-io/function?branch=master\n\n[dependencies-image]: http://img.shields.io/david/validate-io/function.svg\n[dependencies-url]: https://david-dm.org/validate-io/function\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/validate-io/function.svg\n[dev-dependencies-url]: https://david-dm.org/dev/validate-io/function\n\n[github-issues-image]: http://img.shields.io/github/issues/validate-io/function.svg\n[github-issues-url]: https://github.com/validate-io/function/issues\n","publish_time":1424429099399,"_cnpm_publish_time":1424429099399,"dist-tags":{"latest":"1.0.2"}}