{"name":"assert-is-function-x","version":"1.1.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-2017","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.1.0","safe-to-string-x":"^1.2.0","is-primitive":"^2.0.0"},"devDependencies":{"@ljharb/eslint-config":"^11.0.0","browserify":"^14.1.0","browserify-derequire":"^0.9.4","es5-shim":"^4.5.9","es6-shim":"^0.35.3","es7-shim":"^6.0.0","eslint":"^3.18.0","eslint-plugin-import":"^2.2.0","jasmine-node":"^1.14.5","jsdoc-to-markdown":"^3.0.0","json3":"^3.3.2","make-jasmine-spec-runner-html":"^1.0.4","nodemon":"^1.11.0","nsp":"^2.6.3","replace-x":"^1.0.0","uglify-js":"^2.8.16"},"scripts":{"build":"npm run build:setver && npm run security && npm run eslint && npm run browserify && npm run uglify && npm run docs && npm run build:jasmine && npm test","build:jasmine":"make-jasmine-spec-runner-html","build:setver":"PKG_VER=$(node -p -e \"require('./package.json').version\") && replace-x \" @version .*\" \" @version ${PKG_VER}\" index.js","build:watch":"nodemon --watch index.js --watch package.json --exec 'npm run build'","docs":"jsdoc2md --name-format --example-lang js index.js > README.md","eslint":"eslint *.js tests/spec/*.js","security":"nsp check","test":"jasmine-node --matchall tests/spec/","test:watch":"nodemon --watch tests/spec/test.js --exec 'npm test'","browserify":"browserify -p browserify-derequire -e index.js -o lib/assert-is-function-x.js -u 'crypto' -s returnExports","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":"eb24deb791aa0c6f62363f03422a2c0adf99609a","_id":"assert-is-function-x@1.1.1","_shasum":"4dc3f1fae837204ac620f0fa04d85f5a33754f15","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"xotic750","email":"xotic750@gmail.com"},"dist":{"shasum":"4dc3f1fae837204ac620f0fa04d85f5a33754f15","tarball":"http://registry-npm.ywwl.com/assert-is-function-x/download/assert-is-function-x-1.1.1.tgz","integrity":"sha512-LhfNhHy9VtLxzTi25DQW0LIP7aSlEc84pBq3HztJsQoOAOivlqkEIMce3fdYQ0re3yDl/YnHSBGNfypBAezZMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClnwTby7OgoaTrX2TTWtDr1JWf2asl/R7i+BpZSQreKQIhAL9GTyXXASoo3RkuJJDGwIabyK6/J7g+lkioSTBxJKyz"}],"size":10608,"noattachment":false,"key":"/assert-is-function-x/-/assert-is-function-x-1.1.1.tgz"},"maintainers":[{"name":"xotic750","email":"xotic750@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/assert-is-function-x-1.1.1.tgz_1490620137196_0.8617874593473971"},"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":1490620139229,"_cnpm_publish_time":1490620139229,"dist-tags":{"latest":"3.1.2"}}