{"name":"assert-is-function-x","version":"3.0.12","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"],"module":"dist/assert-is-function-x.esm.js","main":"dist/assert-is-function-x.js","scripts":{"build:esm":"mkdirp dist && babel -s true --env-name esm src/assert-is-function-x.js -o dist/assert-is-function-x.esm.js","build:base":"webpack --bail --progress --profile --colors","build":"npm run build:esm && cross-env NODE_ENV=production npm run build:base --","build:dev":"npm run build:base --","clean":"rimraf dist && npm run clean:coverage","clean:coverage":"rimraf __tests__/coverage","lint":"eslint -f 'node_modules/eslint-friendly-formatter' --ext .js .","lint-fix":"npm run lint -- --fix","report":"npm run build -- --env.report","report:dev":"npm run build:dev -- --env.report","security":"npm audit","security-fix":"npm run security -- fix","start":"nodemon --exec \"npm run build\" --watch src","test":"npm run clean:coverage && jest","test:ci":"npm run test -- --ci --maxWorkers=2","test:coverage":"npm run test -- --coverage"},"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":"^4.0.20","is-primitive":"^3.0.1","to-string-symbols-supported-x":"^2.0.14"},"devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/node":"^7.5.5","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/plugin-syntax-dynamic-import":"^7.2.0","@babel/plugin-syntax-export-default-from":"^7.2.0","@babel/plugin-syntax-export-namespace-from":"^7.2.0","@babel/plugin-transform-property-mutators":"^7.2.0","@babel/plugin-transform-runtime":"^7.5.5","@babel/preset-env":"^7.5.5","@babel/runtime":"^7.5.5","@prorenata/eslint-config-vue":"^1.13.10","@types/jest":"^24.0.15","@types/node":"^12.6.8","babel-core":"^7.0.0-0","babel-eslint":"^10.0.2","babel-loader":"^8.0.6","babel-plugin-lodash":"^3.3.4","caniuse-lite":"^1.0.30000985","chalk":"^2.4.2","concurrently":"^4.1.1","cross-env":"^5.2.0","eslint":"=5.16.0","eslint-config-airbnb-base":"^13.2.0","eslint-config-prettier":"^6.0.0","eslint-friendly-formatter":"^4.0.1","eslint-import-resolver-webpack":"^0.11.1","eslint-loader":"^2.2.1","eslint-plugin-babel":"^5.3.0","eslint-plugin-compat":"^3.3.0","eslint-plugin-css-modules":"^2.11.0","eslint-plugin-eslint-comments":"^3.1.2","eslint-plugin-html":"^6.0.0","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.13.0","eslint-plugin-jsdoc":"^15.6.1","eslint-plugin-json":"^1.4.0","eslint-plugin-lodash":"^5.1.0","eslint-plugin-no-use-extend-native":"^0.4.1","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^3.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-sort-class-members":"^1.5.0","eslint-plugin-switch-case":"^1.1.2","eslint-plugin-vue":"^5.2.3","friendly-errors-webpack-plugin":"^1.7.0","identity-obj-proxy":"^3.0.0","jest":"^24.8.0","jest-cli":"^24.8.0","jest-file":"^1.0.0","jsdoc-to-markdown":"^5.0.0","lodash":"^4.17.15","lodash-webpack-plugin":"^0.11.5","mkdirp":"^0.5.1","node-notifier":"^5.4.0","nodemon":"^1.19.1","prettier":"=1.14.3","rimraf":"^2.6.3","semver":"^6.2.0","source-map-loader":"^0.2.4","strip-ansi":"^5.2.0","terser-webpack-plugin":"^1.3.0","typescript":"^3.5.3","webpack":"^4.36.1","webpack-bundle-analyzer":"^3.3.2","webpack-cli":"^3.3.6","webpack-merge":"^4.2.1"},"engines":{"node":">=8.11.4","npm":"6.10.1"},"browserslist":["> 1%","Explorer >= 9"],"gitHead":"70ad8235dfc400a74375b2f37fe425000ad2d1d5","_id":"assert-is-function-x@3.0.12","_npmVersion":"5.10.0","_nodeVersion":"8.11.4","_npmUser":{"name":"xotic750","email":"xotic750@gmail.com"},"dist":{"integrity":"sha512-QeGDEAVIF4nwrZYf8quLAFNCby39W8lZW2PLGK+NiyPE1iLkZTHqh98jpyo4XK7M1ukNunJbiFP8qaYtk7HGwQ==","shasum":"b8385ff8fec2451d4a8828bd13843cbc18a21180","tarball":"http://registry-npm.ywwl.com/assert-is-function-x/download/assert-is-function-x-3.0.12.tgz","fileCount":10,"unpackedSize":132674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdNa+RCRA9TVsSAnZWagAAQUQP/A5T9BBeODX9K5dMcMIU\nic7YxfTbjZZtU5ChTeUaJHWmSgsxoabHNule93mXuBTS9Kn7QX9U3neLNhGh\nrDvYS4Xrk3vxSUFyKd/6Cni0snmxDwIpZ/FU++rt/aTgTZRmKT60KKTlnO7A\nY5PYuxJIwPPH/QFKjE3QmqkyxBZZpfAn/Xcebs7S4om+E/6oDy32ASvY+JKL\nGb0jRvgFHGhMnzK2QNgczyz4+pc6RZMpqZO11du/W368NgT5hQTabRY1OCmU\nj4CyBJGs2thLilyqf+SJndc9T0egm/qpF1UdlQu/SMN8j1Gq1I+od6NG8gzv\nJK67bYpIUJ04kMSmK1OL1JXrg3Rji6AmDdgYGw3Sev/jFGXqV/Kdw1lUNsFC\nd+bdkfm2yR4/TrtTWKbY3NB6w0kcFVkVPjMSlFlLl+SOuXXGPppcGYoknVmn\nkjCROTXRCpHL79qVyU0zXdFWyYJLp5kdUp2SsAgJp8Sv/hHmiai40R0bnI5A\ngopRiRtjrHWYgOcz86tKF8rvvkpy3rBBGhBb9zNPKA1fT9jzYoDTLf66bsZQ\nrGUBL6kMPJtgBM02RBng6rrLDpMhyE/zJcddTee96O+Srql7v+vRL0CCo3rq\nU0iUMx15iQ+CpfI4/OmYFlstJnpth9/g5ei/0JO5qAm25/oRw0TxZadU1/Nu\nwEp6\r\n=J/04\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAl2i0jSDanpzIgPjdPnEHnPxFi/VbJOXISsqZT+v+TdAiAFpa9BmggKDd2mQppujbaqZ96qz0HbetJbvA6f9VB0dQ=="}],"size":30373,"noattachment":false,"key":"/assert-is-function-x/-/assert-is-function-x-3.0.12.tgz"},"maintainers":[{"name":"xotic750","email":"xotic750@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assert-is-function-x_3.0.12_1563799440583_0.5971855498460206"},"_hasShrinkwrap":false,"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":1563799440697,"_cnpm_publish_time":1563799440697,"dist-tags":{"latest":"3.1.2"}}