{"name":"@putout/plugin-remove-double-negations","version":"1.0.1","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":"^3.0.0","nodemon":"^1.14.12","nyc":"^14.0.0","supertape":"^1.0.3"},"peerDependencies":{"putout":">=4.31"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-double-negations@1.0.1","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-73p8QlFqMcopUwj3kl7Kde3/LrkYiM1t6qQietTJQ31xAz86lHkR0o54V8axkiRGhOyL8/5pKar4JKLv9Kdr9A==","shasum":"4779faa3bfb300480eea142bc0bf25844cf90f9b","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-double-negations/download/@putout/plugin-remove-double-negations-1.0.1.tgz","fileCount":4,"unpackedSize":4553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdoFHUCRA9TVsSAnZWagAAH6oP/2zUgmA5oB+fet3Hksix\nxd9glYLu3U4OQ7VepfNhEAzi6O5Qoe7/l3YyNb++G8mvR5JyI1MdANdXIfTn\nvVH5mBfQkkV38BBUAGroeo2EQifnvikBvZb+8nfaThW89H9JcyJTcnh+EcEB\nVpq4GO8U+5Q7k7+dyP0k4GFpJSLpreHwR9FslmSJe3mMtlJDZCOJZT6ckqnU\nJGwnpsUiwOp/9py1NIPm26f8VbRlxkF66XRQX2Y3qVAte1oD9NJBuS2BjgG3\nFvxAF4+H6T4AslV05YCLjw5xAo1bfefPXx3SZhT78ZJ5uvPRigsoVLkI8PgV\nbMVYNvOdYzV4XmbvlSzJ5ehv//Y/fvtNNkL1VCI+4iU71rr2jgOtrfLbwe78\nfG8cmv/ZMSSNlH+Did+OmDxc4A7akNMTPFcpcaBN0gIMI6uUiXm+73kUmYuJ\nG+r0TEh2gNv94rtZmLkaCy3Z2/+xYtOv8Kx6LLsMHbAKtw2uUtyUaasN9Tu0\njNRg5j+aGijBI7Pm4Usln1kkY6gVpU25K2nv6+XrVJZiJONElkn+WDFQ8gqQ\ngXxdGitBxpnf0fxAenaAjg9RvcqnUN6Y3xfHdRRoFi/BmHG5SO4Q/zycNPAl\nP7rKPcfW5zCvtvYKoRL69I4QAakMLLwjl0l58sqCOq2lX2nxy0q5wrcAvDaZ\nIaWS\r\n=WLUM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGP1Zmuc1NBf1JMoC42RUjeKdZQSNsWbaHfumgkXOUIvAiEAsxEPiaCKZ2EkPL5N72pyfrqoy8vMrpbnZKVy9nx+oW4="}],"size":2001,"noattachment":false,"key":"/@putout/plugin-remove-double-negations/-/@putout/plugin-remove-double-negations-1.0.1.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_1.0.1_1570787796026_0.717060665742802"},"_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":1570787796189,"_cnpm_publish_time":1570787796189,"dist-tags":{"latest":"4.0.1"}}