{"name":"@putout/plugin-remove-double-negations","version":"2.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to remove double negations","homepage":"http://github.com/coderaiser/putout","main":"lib/remove-double-negations.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","putout":"putout lib test","putout:fix":"putout --fix lib test","coverage":"madrun coverage"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","logical","negation"],"devDependencies":{"@putout/test":"^1.0.0","coveralls":"^3.0.0","eslint":"^6.2.0","eslint-plugin-node":"^10.0.0","lerna":"^3.8.5","madrun":"^5.0.0","nodemon":"^2.0.1","nyc":"^14.0.0","supertape":"^1.0.3"},"peerDependencies":{"putout":">=7.2"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-double-negations@2.0.0","_nodeVersion":"13.2.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-Wa5IYfEGK5golDvw2AMZscawekmEZ2aJhytTUygRar/UBjVvDEUAyKvuaKQ72oP48OkvocBQYHlsAoJwbjF0pA==","shasum":"6c5d39e652ad8c856f811ec21b44dbe8abb96e31","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-double-negations/download/@putout/plugin-remove-double-negations-2.0.0.tgz","fileCount":4,"unpackedSize":3598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3/byCRA9TVsSAnZWagAAkTkQAIwiQrMFYQxUkpou1nA2\nOluMZV78ILBTjgKC5S6bNCu7hBODYlvzBYsKV7h1dfmPcWLh9BMtPw21xopp\nIDxh+hK7xE7GgnzW8J+n5fNlH7GLKBiVC6s43gW+C+fi5t2oR1iBPisIYLO7\nt5AlBjgVo7j7d1+QvEEibEzo3laVHKQ/ScC2Qq8XeRvjvSyCgDb4ulzXxlYM\nGlM5BJeUJjZwGFWaFFtOREzp5CeFyQkYdh6QS6il3qUQQz4MfbkNNavcXUY9\nQFx3VrD3DLCGgq/NmrtJ0QnXwiT9DfB8d+EOsRK4QKH0y5Lv+k9866em++gl\nqZWicknmb5ztbAj7Gz1Gi1qKlbRcv9imhk019rf644kwKDps7TW6Zwhab/6w\nFLt/4fibkHE+G/SVpPI8R/aaHK/uhybM6mC/4NVJF000UpEx9/YcQVZ+lel0\nld2wf7jfx3x0WhB+8xaRas72Ajs6tqT0IvX+mSJkiwGyeLmjuJy6d3ZFRj0N\nlHuMuivwg/klKSzexph5BJ6qneKjSWvPjNGga/qy8HHpsK1miPme+2TgFdqD\nXAHfduTSk24MFrsvPrFrlY9l1fxjHTWtSpV9cGjH0BBK+dwLpSsNzXJeg989\nEzPeHQ/SLRwbk2SQKaXoP5zNpBAkdHBAC3hd6lsMjSOl+lMt1KKBjLZ0uESB\nTOpB\r\n=xefK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGlrfZ8ExRmcQImUL06uBcPTkdCyPDh32R1GvbhFJu7WAiAHjgalVFvKjY3NZp1KcsFUFmbP+5CcvWXAoTwcWhE7uA=="}],"size":1770,"noattachment":false,"key":"/@putout/plugin-remove-double-negations/-/@putout/plugin-remove-double-negations-2.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-remove-double-negations_2.0.0_1574958834232_0.3304501559078694"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-double-negations [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-double-negations.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-double-negations\"npm\"\n\n> To explicitly convert its return value (or any expression in general) to the corresponding boolean value can be used a double NOT operator (`!!`).\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_NOT)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove **double negations** from conditionals. Merged to [**remove-unused-type-convertion**](https://www.npmjs.com/package/@putout/plugin-remove-useless-type-conversion)\n\n## Install\n\n```\nnpm i @putout/plugin-remove-double-negations\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-double-negations\": \"off\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nif (!!a) {\n    console.log('hi');\n}\n```\n\n## ✅ Example of correct code\n\n```js\nif (a) {\n    console.log('hi');\n}\n```\n\n## License\n\nMIT\n","publish_time":1574958834359,"_cnpm_publish_time":1574958834359,"dist-tags":{"latest":"4.0.1"}}