{"name":"@putout/plugin-remove-double-negations","version":"4.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to remove double negations","homepage":"https://github.com/coderaiser/putout/tree/v25.8.0/packages/plugin-remove-double-negations#readme","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","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","logical","negation"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","lerna":"^4.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"3e83abb950fd7f00e9bce3d41c597b6b1f46e9fb","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-double-negations@4.0.1","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-ksafo+l1wPCUdgpUwAOcFBF7pzfLl0EMqOxAcdcTC34DbH14PCeDNee8ZRnW/jjsDzawiy1SodIlX9R2BCV0bA==","shasum":"12fe560a2619af854964c2f66c62fff524f7f3ec","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-double-negations/download/@putout/plugin-remove-double-negations-4.0.1.tgz","fileCount":4,"unpackedSize":3968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOf50ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXog//cfhYrieHfbIP7Mgp6PHugKUBjmrt+eEFSORL5zprD95IPkPU\r\nOrHtGECsUcXsLOewvTNrrD4GTEA79NuYNj3rQBvUttfe07GxS91IwpbNfim5\r\npyQQUxl49VNbVHN3gF5zXfhOasR88BOZBmjEnrFrAh4ek5WBKOcEWi/jioA0\r\n/o+Mn0pIj69wIc3D9lseiuRgGz+6FdgY46fG36kBQsyCODB7v8JonpEL+pm+\r\naeqCQyu45jFz/dpVRjXcywG/tF2OtXQRmIy6FlVAE09oP/RGOO5Lnvubn6ck\r\nrN/Jpi5TyQLNQLgRfWvNi9let4TKszm/G+p4TN00v3xCouiCoPhyuBcxIpLq\r\nHcDeho8rkn9d/27EBVSqiNNUwZyYLb8FcBc71je92P+6PDVDpMYWD5ZIrlz1\r\nLY4uv6bQMvu+1m/VjH0w4qRFsR1ue7dN968/0fMfWubSBcOaCY3x9OrRvwSg\r\n50G6yyUxMy9D6wWty7yjOKMVSYpeqSCcBjkyAHXR4K9VOckKY5X0intOz8yz\r\numfkUT++ra29B0pCxIQPPsiO9c+YcOmsMUXEX5n83mVvbvnwWuK1prdre5At\r\ng4HjWIhWZrWovs+yPgoxXvcHjwiR0K38EBDRAqsQBeIPy+9F9Jl2ys4BhzrE\r\n6bq8X6PgQVfdMM1zrp5mFokW6pl/SXxqPQQ=\r\n=UaAC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDq4pT+8alnVDoyn814mx4rZx6+dSdR39rpWgHspCjr0AIhAKDQg8irHqCUo/YLIJDTBlcL3Wk9PbC90MBIIO8mlpjs"}],"size":2001,"noattachment":false,"key":"/@putout/plugin-remove-double-negations/-/@putout/plugin-remove-double-negations-4.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-remove-double-negations_4.0.1_1647967860685_0.5371204212660778"},"_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":1647967860831,"_cnpm_publish_time":1647967860831,"dist-tags":{"latest":"4.0.1"}}