{"name":"assert-is-function-x","version":"1.0.3","description":"If isFunction(callbackfn) is false, throw a TypeError exception.","homepage":"https://github.com/Xotic750/assert-is-function-x","author":{"name":"Graham Fairweather","email":"xotic750@gmail.com"},"copyright":"Copyright (c) 2015-2016","keywords":["assertIsFunction","module","javascript","nodejs","browser"],"main":"index.js","engines":{"node":"*"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Xotic750/assert-is-function-x.git"},"bugs":{"url":"https://github.com/Xotic750/assert-is-function-x/issues"},"dependencies":{"is-function-x":"^1.0.4","safe-to-string-x":"^1.1.9","is-primitive":"^2.0.0"},"devDependencies":{"es5-shim":"^4.5.2","es6-shim":"^0.34.2","json3":"^3.3.2","jscs":"^2.9.0","uglify-js":"^2.6.1","browserify":"^13.0.0","browserify-derequire":"^0.9.4","jasmine-node":"^1.14.5","jsdoc-to-markdown":"^1.3.3","nsp":"^2.2.0"},"scripts":{"test":"jasmine-node --matchall tests/spec/","security":"nsp check","style":"jscs index.js","docs":"jsdoc2md --name-format --example-lang js index.js > README.md","build":"browserify -p browserify-derequire -e index.js -o lib/assert-is-function-x.js -u 'crypto' -s returnExports","build-uglify":"uglifyjs lib/assert-is-function-x.js -o lib/assert-is-function-x.min.js --compress --keep-fnames --mangle --beautify ascii_only=true,beautify=false --source-map lib/assert-is-function-x.map"},"gitHead":"5663d2e92947a62ddd0942358bda88277a4e1711","_id":"assert-is-function-x@1.0.3","_shasum":"448fca2e2385488c4749fe2423775427a554836e","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"xotic750","email":"xotic750@gmail.com"},"maintainers":[{"name":"xotic750","email":"xotic750@gmail.com"}],"dist":{"shasum":"448fca2e2385488c4749fe2423775427a554836e","tarball":"http://registry-npm.ywwl.com/assert-is-function-x/download/assert-is-function-x-1.0.3.tgz","integrity":"sha512-E/mx5cNJL1Jel3yQiysuPIXQWmwuCdzpHhbSMnYohGO//0PsSknYFfZTbtDw9BaKF9vwM9BEW3YmyKMN4pz9cA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHYyb//l34kpswq9dPCf+2MWbVWnB/XmF5xfD8Ngw0+dAiAEtqVhC9HX1XqaFST2tmmWnJbFWk528LknS652MZmhtw=="}],"size":10920,"noattachment":false,"key":"/assert-is-function-x/-/assert-is-function-x-1.0.3.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/assert-is-function-x-1.0.3.tgz_1454470039247_0.34349525813013315"},"directories":{},"readme":"<a\n  href=\"https://travis-ci.org/Xotic750/assert-is-function-x\"\n  title=\"Travis status\">\n<img\n  src=\"https://travis-ci.org/Xotic750/assert-is-function-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\">\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/assert-is-function-x\"\n  title=\"Dependency status\">\n<img src=\"https://david-dm.org/Xotic750/assert-is-function-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/assert-is-function-x?type=dev\"\n  title=\"devDependency status\">\n<img src=\"https://david-dm.org/Xotic750/assert-is-function-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://badge.fury.io/js/assert-is-function-x\"\n  title=\"npm version\">\n<img src=\"https://badge.fury.io/js/assert-is-function-x.svg\"\n  alt=\"npm version\" height=\"18\">\n</a>\n<a\n  href=\"https://www.jsdelivr.com/package/npm/assert-is-function-x\"\n  title=\"jsDelivr hits\">\n<img src=\"https://data.jsdelivr.com/v1/package/npm/assert-is-function-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\">\n</a>\n<a\n  href=\"https://bettercodehub.com/results/Xotic750/assert-is-function-x\"\n  title=\"bettercodehub score\">\n<img src=\"https://bettercodehub.com/edge/badge/Xotic750/assert-is-function-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\">\n</a>\n<a\n  href=\"https://coveralls.io/github/Xotic750/assert-is-function-x?branch=master\"\n  title=\"Coverage Status\">\n<img src=\"https://coveralls.io/repos/github/Xotic750/assert-is-function-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\">\n</a>\n\n<a name=\"module_assert-is-function-x\"></a>\n\n## assert-is-function-x\n\nIf isFunction(callbackfn) is false, throw a TypeError exception.\n\n<a name=\"exp_module_assert-is-function-x--module.exports\"></a>\n\n### `module.exports(callback)` ⇒ <code>\\*</code> ⏏\n\nTests `callback` to see if it is a function, throws a `TypeError` if it is\nnot. Otherwise returns the `callback`.\n\n**Kind**: Exported function  \n**Returns**: <code>\\*</code> - Returns `callback` if it is function.  \n**Throws**:\n\n- <code>TypeError</code> Throws if `callback` is not a function.\n\n| Param     | Type                | Description                   |\n| --------- | ------------------- | ----------------------------- |\n| callback  | <code>\\*</code>     | The argument to be tested.    |\n| [message] | <code>string</code> | Optional alternative message. |\n\n**Example**\n\n```js\nimport assertIsFunction from 'assert-is-function-x';\n\nconst primitive = true;\nconst mySymbol = Symbol('mySymbol');\nconst symObj = Object(mySymbol);\nconst object = {};\nconst fn = function fn() {};\n\nassertIsFunction(primitive); // TypeError 'true is not a function'.\nassertIsFunction(object); // TypeError '#<Object> is not a function'.\nassertIsFunction(mySymbol); // TypeError 'Symbol(mySymbol) is not a function'.\nassertIsFunction(symObj); // TypeError '#<Object> is not a function'.\nconsole.log(assertIsFunction(fn)); // Returns fn.\n```\n","publish_time":1454470042184,"_cnpm_publish_time":1454470042184,"dist-tags":{"latest":"3.1.2"}}