{"name":"is-empty-function","version":"1.0.7","description":"Checks the given function (or fn.toString()) is with empty body - dont have body.","scripts":{"test":"standard && node test.js"},"author":{"name":"Charlike Mike Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/tunnckoCore/is-empty-function.git"},"keywords":["args","argument","arguments","body","check","checks","empty","fn","fns","func","funcs","function","functions","given","name","names","obj","object","objects","parse","parser","parsers","parses","parsing","properties","property","string","strings","tostring","util","utils","validate","validates"],"license":{"type":"MIT","url":"https://github.com/tunnckoCore/is-empty-function/blob/master/LICENSE.md"},"dependencies":{"balanced-match":"~0.2.0","cleanup-coverage-code":"~1.0.3"},"devDependencies":{"assertit":"^0.1.0"},"gitHead":"45578d509da3b1a1df273040651d932bcfb69a40","bugs":{"url":"https://github.com/tunnckoCore/is-empty-function/issues"},"homepage":"https://github.com/tunnckoCore/is-empty-function#readme","_id":"is-empty-function@1.0.7","_shasum":"bd0f862790fcf4054a9a419ebd8b0b941c6a4b45","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"bd0f862790fcf4054a9a419ebd8b0b941c6a4b45","tarball":"http://registry-npm.ywwl.com/is-empty-function/download/is-empty-function-1.0.7.tgz","integrity":"sha512-GRHskeNakdJyYojkcmk6ceu3cNujQWJjXT/80VDd6m5AjrNCJUF0xOCwIKZEyClAgHTLBnpiQEeUhiaSAjPbTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFIqrgAMsTAY8XH9UkriKlVmeZFkCKK8WpwqFi8YE8R5AiABT0WRk++x+ziaSIygtvXmQ4M50Ih2NnwZExJgjZbGOg=="}],"size":5159,"noattachment":false,"key":"/is-empty-function/-/is-empty-function-1.0.7.tgz"},"directories":{},"readme":"# [is-empty-function][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] \n\n> Check that given string, function or arrow function have empty body, using `parse-function`.\n\n[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]\n\n\n## Install\n```\nnpm i is-empty-function --save\n```\n\n\n## Usage\n> For more use-cases see the [tests](./test.js)\n\n```js\nconst isEmptyFunction = require('is-empty-function')\n```\n\n### [isEmptyFunction](./index.js#L46)\n> Check that given string, function or arrow function have empty body, using `parse-function`.\n\n- `[val]` **{Function|ArrowFunction|String}** passed to [parse-function][parse-function]  \n- `return` **{Boolean}**\n\n**Example**\n\n```js\nconst isEmptyFunction = require('is-empty-function')\n\nconst fixture = \"function codeCov () {__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;};\"\nisEmptyFunction(fixture)            // => true\nisEmptyFunction('function () {}')   // => true\nisEmptyFunction('z => {}')          // => true\nisEmptyFunction('(a, b) => {}')     // => true\nisEmptyFunction(z => {})            // => true\nisEmptyFunction((a, b) => {})       // => true\n\n// return `false`\nisEmptyFunction('function () { return true }')      // => false\nisEmptyFunction('z => { return z * z }')            // => false\nisEmptyFunction('(a, b) => {}')                     // => false\nisEmptyFunction(z => { return z + z })              // => false\nisEmptyFunction((a, b) => { return a * b})          // => false\nisEmptyFunction((a, b) => a * 2 * z)                // => false\nisEmptyFunction(function () { return true })        // => false\nisEmptyFunction(function named () { return true })  // => false\n```\n\n\n## Related\n- [cleanup-coverage-code](https://github.com/tunnckoCore/cleanup-coverage-code): Cleanup ugly code added by code coverage tools during the test process. Like this one `__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;`.\n- [is-ansi](https://github.com/tunnckocore/is-ansi): Check that given string contain ANSI color codes, without CLI\n- [is-async-function](https://github.com/tunnckocore/is-async-function): Check that given function is async (callback) function or not. Trying to guess that based on check if `callback`, `cb`, `done` or `next` exists as function argument name.\n- [is-backslash](https://github.com/tunnckocore/is-backslash): Checks given value is backslash - support char code number, hex, unicode or string value to be given.\n- [is-installed](https://github.com/tunnckoCore/is-installed): Checks that given package is installed on the system - globally or locally.\n- [is-missing](https://github.com/tunnckocore/is-missing): Check that given `name` or `user/repo` exists in npm registry or in github as user repository.\n- [is-real-object](https://github.com/tunnckocore/is-real-object): Returns `true` if a value is any type of object, but not an array. Browserify-ready.\n- [parse-function](https://github.com/tunnckocore/parse-function): Parse a function, arrow function or string to object with `name`, `args`, `params` and `body` properties.\n- [relike](https://github.com/hybridables/relike): Simple promisify a callback-style function with sane defaults. Support promisify-ing sync functions.\n\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/is-empty-function/issues/new).  \nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckocore.tk][author-www-img]][author-www-url] [![keybase tunnckocore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n\n[npmjs-url]: https://www.npmjs.com/package/is-empty-function\n[npmjs-img]: https://img.shields.io/npm/v/is-empty-function.svg?label=is-empty-function\n\n[license-url]: https://github.com/tunnckoCore/is-empty-function/blob/master/LICENSE\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg\n\n\n[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/is-empty-function\n[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/is-empty-function.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/is-empty-function\n[travis-img]: https://img.shields.io/travis/tunnckoCore/is-empty-function.svg\n\n[coveralls-url]: https://coveralls.io/r/tunnckoCore/is-empty-function\n[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/is-empty-function.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/is-empty-function\n[david-img]: https://img.shields.io/david/tunnckoCore/is-empty-function.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/ama\n[new-message-img]: https://img.shields.io/badge/ask%20me-anything-green.svg\n\n[parse-function]: https://github.com/tunnckoCore/parse-function","publish_time":1431818763255,"_cnpm_publish_time":1431818763255,"dist-tags":{"latest":"1.1.2"}}