{"name":"assert-is-function-x","version":"1.0.1","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.2","safe-to-string-x":"^1.1.7","is-primitive":"^2.0.0"},"devDependencies":{"es5-shim":"^4.5.0","es6-shim":"^0.34.2","json3":"^3.3.2","jscs":"^2.8.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":"f51fb6b306f6555ccb6e9f31e9c596c4216baf09","_id":"assert-is-function-x@1.0.1","_shasum":"8b2d41f94a15fda16653a4c8bb2ed3615834a385","_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":"8b2d41f94a15fda16653a4c8bb2ed3615834a385","tarball":"http://registry-npm.ywwl.com/assert-is-function-x/download/assert-is-function-x-1.0.1.tgz","integrity":"sha512-XgBdQzOuRm+/yvIZeKFPQO0jDgWmD62uCgTnYyGT0AXpAXUCvuFyG+WezhoZQN2QQ6BcSax3RXXUqBLmcmkA1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA0Jlggkc/3TXiJ0YzRv16s+w9/MEsbYhOoR1Xae0vApAiBd1lRpmzCqj29HENHiOf+B60dxAjkTLaUo9tq+my/yOg=="}],"size":10915,"noattachment":false,"key":"/assert-is-function-x/-/assert-is-function-x-1.0.1.tgz"},"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":1453684729945,"_cnpm_publish_time":1453684729945,"dist-tags":{"latest":"3.1.2"}}