{"_id":"is-arrow-function","_rev":"161210","name":"is-arrow-function","description":"Determine if a function is an ES6 arrow function or not.","dist-tags":{"latest":"2.0.3"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2021-06-03T11:40:29.000Z","created":"2013-09-13T05:54:51.687Z","2.0.3":"2015-08-16T21:44:10.357Z","2.0.2":"2015-01-29T19:04:49.529Z","2.0.1":"2014-12-15T09:42:31.061Z","2.0.0":"2014-12-03T19:17:47.538Z","1.0.2":"2014-08-10T17:47:44.443Z","1.0.1":"2013-12-07T10:47:28.320Z","1.0.0":"2013-09-13T05:54:51.687Z"},"users":{"ljharb":true,"rocket0191":true},"author":{"name":"Jordan Harband"},"repository":{"type":"git","url":"git://github.com/ljharb/is-arrow-function.git"},"versions":{"2.0.3":{"name":"is-arrow-function","version":"2.0.3","description":"Determine if a function is an ES6 arrow function or not.","main":"index.js","scripts":{"test":"npm run lint && node --es-staging --harmony test/index.js && npm run security","coverage":"covert test/index.js","coverage-quiet":"covert test/index.js --quiet","lint":"npm run jscs && npm run eslint","jscs":"jscs *.js */*.js","eslint":"eslint *.js */*.js","security":"nsp package"},"repository":{"type":"git","url":"git://github.com/ljharb/is-arrow-function.git"},"keywords":["arrow","arrow function","es6","fat","fat arrow","function","=>"],"author":{"name":"Jordan Harband"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/is-arrow-function/issues"},"dependencies":{"is-callable":"^1.0.4"},"devDependencies":{"tape":"^4.1.0","covert":"^1.1.0","jscs":"^2.1.0","make-arrow-function":"^1.0.0","eslint":"^1.1.0","@ljharb/eslint-config":"^1.0.4","nsp":"^1.0.3"},"testling":{"files":"test/index.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"62a6d8a3f33df4916527ce4dc846936e0e6ad9b3","homepage":"https://github.com/ljharb/is-arrow-function#readme","_id":"is-arrow-function@2.0.3","_shasum":"29be2c2d8d9450852b8bbafb635ba7b8d8e87ec2","_from":".","_npmVersion":"2.14.0","_nodeVersion":"3.0.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"29be2c2d8d9450852b8bbafb635ba7b8d8e87ec2","size":4695,"noattachment":false,"key":"/is-arrow-function/-/is-arrow-function-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-arrow-function/download/is-arrow-function-2.0.3.tgz"},"maintainers":[{"name":"ljharb","email":""}],"directories":{},"publish_time":1439761450357,"_cnpm_publish_time":1439761450357,"_hasShrinkwrap":false},"2.0.2":{"name":"is-arrow-function","version":"2.0.2","description":"Determine if a function is an ES6 arrow function or not.","main":"index.js","scripts":{"test":"npm run lint && node --harmony test/index.js","coverage":"covert test/index.js","coverage-quiet":"covert test/index.js --quiet","lint":"jscs *.js */*.js"},"repository":{"type":"git","url":"git://github.com/ljharb/node-is-arrow-function.git"},"keywords":["arrow","arrow function","es6","fat","fat arrow","function","=>"],"author":{"name":"Jordan Harband"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/node-is-arrow-function/issues"},"dependencies":{"is-callable":"~1.0.3"},"devDependencies":{"tape":"~3.4.0","covert":"1.0.0","jscs":"~1.10.0","make-arrow-function":"~1.0.0"},"testling":{"files":"test/index.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"4a09458d070104a4b1432b6d7f1cdb5d423ae598","homepage":"https://github.com/ljharb/node-is-arrow-function","_id":"is-arrow-function@2.0.2","_shasum":"524f317b9a244305e0a892bba872e137972fbf58","_from":".","_npmVersion":"2.3.0","_nodeVersion":"1.0.4","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":""}],"dist":{"shasum":"524f317b9a244305e0a892bba872e137972fbf58","size":3949,"noattachment":false,"key":"/is-arrow-function/-/is-arrow-function-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-arrow-function/download/is-arrow-function-2.0.2.tgz"},"directories":{},"publish_time":1422558289529,"_cnpm_publish_time":1422558289529,"_hasShrinkwrap":false},"2.0.1":{"name":"is-arrow-function","version":"2.0.1","description":"Determine if a function is an ES6 arrow function or not.","main":"index.js","scripts":{"test":"npm run lint && node --harmony test/index.js","coverage":"covert test/index.js","coverage-quiet":"covert test/index.js --quiet","lint":"jscs *.js */*.js"},"repository":{"type":"git","url":"git://github.com/ljharb/node-is-arrow-function.git"},"keywords":["arrow","arrow function","es6","fat","fat arrow","function","=>"],"author":{"name":"Jordan Harband"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/node-is-arrow-function/issues"},"dependencies":{},"devDependencies":{"tape":"~3.0.3","covert":"1.0.0","jscs":"~1.8.1","make-arrow-function":"~1.0.0"},"testling":{"files":"test/index.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"8f986890a70bc08414505bdab1b52789715dac4f","homepage":"https://github.com/ljharb/node-is-arrow-function","_id":"is-arrow-function@2.0.1","_shasum":"853165ecbb8cc7b16a3fcacf87010de5c2c15415","_from":".","_npmVersion":"2.1.12","_nodeVersion":"0.11.14","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":""}],"dist":{"shasum":"853165ecbb8cc7b16a3fcacf87010de5c2c15415","size":3878,"noattachment":false,"key":"/is-arrow-function/-/is-arrow-function-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-arrow-function/download/is-arrow-function-2.0.1.tgz"},"directories":{},"publish_time":1418636551061,"_cnpm_publish_time":1418636551061,"_hasShrinkwrap":false},"2.0.0":{"name":"is-arrow-function","version":"2.0.0","description":"Determine if a function is an ES6 arrow function or not.","main":"index.js","scripts":{"test":"npm run lint && node --harmony test/index.js","coverage":"covert test/index.js","coverage-quiet":"covert test/index.js --quiet","lint":"jscs *.js */*.js"},"repository":{"type":"git","url":"git://github.com/ljharb/node-is-arrow-function.git"},"keywords":["arrow","arrow function","es6","fat","fat arrow","function","=>"],"author":{"name":"Jordan Harband"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/node-is-arrow-function/issues"},"dependencies":{},"devDependencies":{"tape":"~3.0.3","covert":"1.0.0","jscs":"~1.8.1"},"testling":{"files":"test/index.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"e725163308c0962f65a195c53d8f1e0c23f3bd76","homepage":"https://github.com/ljharb/node-is-arrow-function","_id":"is-arrow-function@2.0.0","_shasum":"f7912cb0876d66eca8ebb11f028f5ce306902220","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":""}],"dist":{"shasum":"f7912cb0876d66eca8ebb11f028f5ce306902220","size":3701,"noattachment":false,"key":"/is-arrow-function/-/is-arrow-function-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-arrow-function/download/is-arrow-function-2.0.0.tgz"},"directories":{},"publish_time":1417634267538,"_cnpm_publish_time":1417634267538,"_hasShrinkwrap":false},"1.0.2":{"name":"is-arrow-function","version":"1.0.2","description":"Determine if a function is an ES6 arrow function or not.","main":"index.js","scripts":{"test":"node --harmony test/index.js","coverage":"covert test/index.js","coverage-quiet":"covert test/index.js --quiet"},"repository":{"type":"git","url":"git://github.com/ljharb/node-is-arrow-function.git"},"keywords":["arrow","arrow function","es6","fat","fat arrow","function","=>"],"author":{"name":"Jordan Harband"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/node-is-arrow-function/issues"},"dependencies":{},"devDependencies":{"tape":"~2.14.0","covert":"~0.4.0"},"testling":{"files":"test/index.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"22caad063ea33043436d5359b55ff5ed4b8da4ae","homepage":"https://github.com/ljharb/node-is-arrow-function","_id":"is-arrow-function@1.0.2","_shasum":"247fd46cdb9e615a3a4ebb62033b0fdbae47e0f3","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":""}],"dist":{"shasum":"247fd46cdb9e615a3a4ebb62033b0fdbae47e0f3","size":2935,"noattachment":false,"key":"/is-arrow-function/-/is-arrow-function-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-arrow-function/download/is-arrow-function-1.0.2.tgz"},"directories":{},"publish_time":1407692864443,"_cnpm_publish_time":1407692864443,"deprecated":"This version returns false negatives for real arrow functions","_hasShrinkwrap":false},"1.0.1":{"name":"is-arrow-function","version":"1.0.1","description":"Determine if a function is an ES6 arrow function or not.","main":"index.js","scripts":{"test":"node --harmony test.js"},"repository":{"type":"git","url":"git://github.com/ljharb/node-is-arrow-function.git"},"keywords":["arrow","arrow function","es6","fat","fat arrow","function","=>"],"author":{"name":"Jordan Harband"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/node-is-arrow-function/issues"},"dependencies":{},"devDependencies":{"tape":"~2.3.0"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"readmeFilename":"README.md","homepage":"https://github.com/ljharb/node-is-arrow-function","_id":"is-arrow-function@1.0.1","dist":{"shasum":"7569da6b860b59c21de4b82ac0919d5123afc0b9","size":2597,"noattachment":false,"key":"/is-arrow-function/-/is-arrow-function-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-arrow-function/download/is-arrow-function-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":""}],"directories":{},"publish_time":1386413248320,"_cnpm_publish_time":1386413248320,"deprecated":"This version returns false negatives for real arrow functions","_hasShrinkwrap":false},"1.0.0":{"name":"is-arrow-function","version":"1.0.0","description":"Determine if a function is an ES6 arrow function or not.","main":"index.js","scripts":{"test":"node --harmony test.js"},"repository":{"type":"git","url":"git://github.com/ljharb/node-is-arrow-function.git"},"keywords":["arrow","arrow function","es6","fat","fat arrow","function","=>"],"author":{"name":"Jordan Harband"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/node-is-arrow-function/issues"},"dependencies":{},"devDependencies":{"tape":"~1.1.0"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"readmeFilename":"README.md","_id":"is-arrow-function@1.0.0","dist":{"shasum":"530a65466d3b3706d9cda8c837d7ff7e494a437e","size":2491,"noattachment":false,"key":"/is-arrow-function/-/is-arrow-function-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-arrow-function/download/is-arrow-function-1.0.0.tgz"},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":""}],"directories":{},"publish_time":1379051691687,"_cnpm_publish_time":1379051691687,"deprecated":"This version returns false negatives for real arrow functions","_hasShrinkwrap":false}},"readme":"#is-arrow-function <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>\n\n[![Build Status][travis-svg]][travis-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n\n[![npm badge][npm-badge-png]][npm-url]\n\n[![browser support][testling-png]][testling-url]\n\nnpm module to determine if a function is an ES6 arrow function or not.\n\nNOTE: Only works in Firefox at the moment.\n\n## Example\n\n```js\nvar isArrowFunction = require('is-arrow-function');\nassert(!isArrowFunction(function () {}));\nassert(!isArrowFunction(null));\nassert(isArrowFunction((a, b) => a * b));\nassert(isArrowFunction(() => 42));\nassert(isArrowFunction(x => x * x));\nassert(isArrowFunction(x => () => x * x));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[npm-url]: https://npmjs.org/package/is-arrow-function\n[npm-version-svg]: http://versionbadg.es/ljharb/is-arrow-function.svg\n[travis-svg]: https://travis-ci.org/ljharb/is-arrow-function.svg\n[travis-url]: https://travis-ci.org/ljharb/is-arrow-function\n[deps-svg]: https://david-dm.org/ljharb/is-arrow-function.svg\n[deps-url]: https://david-dm.org/ljharb/is-arrow-function\n[dev-deps-svg]: https://david-dm.org/ljharb/is-arrow-function/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/is-arrow-function#info=devDependencies\n[testling-png]: https://ci.testling.com/ljharb/is-arrow-function.png\n[testling-url]: https://ci.testling.com/ljharb/is-arrow-function\n[npm-badge-png]: https://nodei.co/npm/is-arrow-function.png?downloads=true&stars=true\n\n","_attachments":{},"homepage":"https://github.com/ljharb/is-arrow-function#readme","bugs":{"url":"https://github.com/ljharb/is-arrow-function/issues"},"license":"MIT"}