{"name":"is-function-x","version":"4.0.4","description":"Determine whether a given value is a function object.","homepage":"https://github.com/Xotic750/is-function-x","author":{"name":"Graham Fairweather","email":"xotic750@gmail.com"},"copyright":"Copyright (c) 2015-present","keywords":["Function","isFunction","module","javascript","nodejs","browser"],"module":"dist/is-function-x.esm.js","main":"dist/is-function-x.js","scripts":{"build:esm":"mkdirp dist && babel -s true --env-name esm src/is-function-x.js -o dist/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/is-function-x.git"},"bugs":{"url":"https://github.com/Xotic750/is-function-x/issues"},"dependencies":{"attempt-x":"^2.0.2","has-to-string-tag-x":"^2.0.2","is-falsey-x":"^2.0.4","is-primitive":"^3.0.1","normalize-space-x":"^4.0.13","replace-comments-x":"^3.0.2","to-boolean-x":"^2.0.3","to-string-tag-x":"^2.0.6"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.4","@babel/node":"^7.5.0","@babel/plugin-proposal-class-properties":"^7.5.0","@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.0","@babel/preset-env":"^7.5.4","@babel/runtime":"^7.5.4","@prorenata/eslint-config-vue":"^1.13.6","@types/jest":"^24.0.15","@types/node":"^12.6.2","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.30000983","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.2.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.0","eslint-plugin-jest":"^22.7.2","eslint-plugin-jsdoc":"^15.3.5","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.14","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","terser-webpack-plugin":"^1.3.0","typescript":"^3.5.3","webpack":"^4.35.3","webpack-bundle-analyzer":"^3.3.2","webpack-cli":"^3.3.5","webpack-merge":"^4.2.1"},"engines":{"node":">=8.11.4","npm":"6.4.1"},"browserslist":["> 1%","Explorer >= 9"],"gitHead":"4d324f70a2caf8537e68698b1ae7d303c0bb4cdf","_id":"is-function-x@4.0.4","_npmVersion":"6.4.1","_nodeVersion":"8.11.4","_npmUser":{"name":"xotic750","email":"xotic750@gmail.com"},"dist":{"integrity":"sha512-nwUxS2F6Dn48ts+DZzZxrvi+jW3t8nhEUNoj7i4dvJGHZqrGzGZ3QCM4nboTIFbOS/ud1bEetIWhEGSoxn6l6w==","shasum":"8d6f479bcc4b4c6501a655fe0a4f12f5f306a13e","tarball":"http://registry-npm.ywwl.com/is-function-x/download/is-function-x-4.0.4.tgz","fileCount":10,"unpackedSize":129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdKT2yCRA9TVsSAnZWagAA0P0P/2SCT6rPcfeby2MFIrnZ\nFlAP3yYJtV3MPj0J+ZX9dAYrQ74TO2WhZMR8I7EMv8w/OuaJHiRYiUvS0F0u\nq+jjoFyVUHlN2hDAsfyg144rR28is1CSjoZecIZ0OcCFJDT+cYmNvxY1ttoe\nlAWZFy/kYEnB737Tt4woekqDK7Wrl2k07j2EjUzCcZTfpSFBVP5Os1uhEzol\n8SiNxZgI6yn4bg/GkAfxeRps19ZQPmBhsXbUvl08P7eV0OLRh/WJcRpl6GzC\n2tLH/nn8DuXfOIdimUu9GYDVoPS3/MTsNXC9ERgVYVpYDSHH4j/v1NC5F3XX\n62+dGTCgHzOh4xKs19erE1a+Wa85RWgywXDaJ6cib0yXmoH7n7ALFQ3xWvNo\n+cJTUQVFIDQCkPIQq5wh+b9EWC1iG6zEzV3Bfk8OX4bXmNnUVmp65ic43k7q\np2+ggnv0V8Vn4K1Ml9j0a1j9+JjVA1ACWZI8Vc4AWWDgCVUb2aH0Y90HdjZu\nOAlAlAWhaBS39RmufF4atGgR7rxI3gOMvOb/hUNWQlfy6tjSJA5xarr9ZdpU\nG+7AfHFLN7S7zmbLpOYsqzLgw6j1wDzBVB7DGWc3jcDf/8aW3DuctXTOOM6Q\nMnSZoV9QcFKx2ZmvPhmFaRagbflM4T+rmPvGEcAt8KQfy9ICS4CU3Akrso4v\nJrZh\r\n=b6GL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDi8zmgm4RrQ6cTRV+/DKwEN7dP2kboD2glJs+WKGyDxwIhAMF51qR/VEJvcTmT46oNSc542CPIvQYozp9V70YpfCm6"}],"size":29163,"noattachment":false,"key":"/is-function-x/-/is-function-x-4.0.4.tgz"},"maintainers":[{"name":"xotic750","email":"xotic750@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-function-x_4.0.4_1562983857811_0.7605698417289517"},"_hasShrinkwrap":false,"readme":"<a\n  href=\"https://travis-ci.org/Xotic750/is-function-x\"\n  title=\"Travis status\">\n<img\n  src=\"https://travis-ci.org/Xotic750/is-function-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\">\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/is-function-x\"\n  title=\"Dependency status\">\n<img src=\"https://david-dm.org/Xotic750/is-function-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/is-function-x?type=dev\"\n  title=\"devDependency status\">\n<img src=\"https://david-dm.org/Xotic750/is-function-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://badge.fury.io/js/is-function-x\"\n  title=\"npm version\">\n<img src=\"https://badge.fury.io/js/is-function-x.svg\"\n  alt=\"npm version\" height=\"18\">\n</a>\n<a\n  href=\"https://www.jsdelivr.com/package/npm/is-function-x\"\n  title=\"jsDelivr hits\">\n<img src=\"https://data.jsdelivr.com/v1/package/npm/is-function-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\">\n</a>\n<a\n  href=\"https://bettercodehub.com/results/Xotic750/is-function-x\"\n  title=\"bettercodehub score\">\n<img src=\"https://bettercodehub.com/edge/badge/Xotic750/is-function-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\">\n</a>\n<a\n  href=\"https://coveralls.io/github/Xotic750/is-function-x?branch=master\"\n  title=\"Coverage Status\">\n<img src=\"https://coveralls.io/repos/github/Xotic750/is-function-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\">\n</a>\n\n<a name=\"module_is-function-x\"></a>\n\n## is-function-x\n\nDetermine whether a given value is a function object.\n\n<a name=\"exp_module_is-function-x--module.exports\"></a>\n\n### `module.exports(value, [allowClass])` ⇒ <code>boolean</code> ⏏\n\nChecks if `value` is classified as a `Function` object.\n\n**Kind**: Exported function  \n**Returns**: <code>boolean</code> - Returns `true` if `value` is correctly classified,\nelse `false`.\n\n| Param        | Type                 | Default            | Description                    |\n| ------------ | -------------------- | ------------------ | ------------------------------ |\n| value        | <code>\\*</code>      |                    | The value to check.            |\n| [allowClass] | <code>boolean</code> | <code>false</code> | Whether to filter ES6 classes. |\n\n**Example**\n\n```js\nimport isFunction from 'is-function-x';\n\nconsole.log(isFunction()); // false\nconsole.log(isFunction(Number.MIN_VALUE)); // false\nconsole.log(isFunction('abc')); // false\nconsole.log(isFunction(true)); // false\nconsole.log(isFunction({name: 'abc'})); // false\nconsole.log(isFunction(function() {})); // true\nconsole.log(isFunction(new Function())); // true\nconsole.log(isFunction(function* test1() {})); // true\nconsole.log(isFunction(function test2(a, b) {})); // true\nconsole.log(isFunction(async function test3() {})); // true\nconsole.log(isFunction(class Test {})); // false\nconsole.log(isFunction(class Test {}, true)); // true\nconsole.log(\n  isFunction((x, y) => {\n    return this;\n  }),\n); // true\n```\n","publish_time":1562983857948,"_cnpm_publish_time":1562983857948,"dist-tags":{"latest":"4.1.2"}}