{"name":"@putout/plugin-remove-double-negations","version":"3.1.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":"^3.0.0","coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","lerna":"^3.8.5","madrun":"^8.0.1","nodemon":"^2.0.1","nyc":"^15.0.1"},"peerDependencies":{"putout":">=12"},"license":"MIT","engines":{"node":">=12"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-double-negations@3.1.0","_nodeVersion":"15.3.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-h7nxiwbV2oN0GTzp+hcdbNrZUcf46/ncLZ8Zwyu9q0+WNqZG6fccIyjd8VlIBcjdoKGyBcWmxMeFPDGikn2q2Q==","shasum":"a6fd210d9555c36442c3d7b5f921ff6caecc08f5","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-double-negations/download/@putout/plugin-remove-double-negations-3.1.0.tgz","fileCount":4,"unpackedSize":3768,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz53mCRA9TVsSAnZWagAA+FEP/1x2Z+E+27ms1rjvG8ex\nMe0yVvU0KNHYJHihkVUsFD7mPmChG84iLvETc7m0E7t9clSbRfS55KpCUzTw\nyeTS+8Fprp8kSOOk4unBdzkbMsPkY9T598nOOHsfEbz9c2sfkhWABrrUWj1R\nk83qcm28sqgzGvbuRiVGtN7cNQ9G1nDxlc+yP23m0tvrib+zKxaVBXsqSBuC\ndy5gs511fnBGxPkE2VXYG6KQHCpFnrzYQ2f5sSL6hDPIHj+PLGXLHVB0jxi4\npSIQSyl5xVW2ZIASybdsCVkRD9QvT4AM8R1DZzvDmphDsve58pZHh3nkN0l8\nBLG0xYHd4lJoIakWH4T80dC+KQeS2PMKQmq3bmsNcn7uL0IBTNeeD13GfILZ\n6FI+kZQn87lRFvs37MKCfLvVi/YkYWcJd/zCqOKRtz38w0OqTbTXP0Ua4O8n\n2bDRzjmrdaHDgzoC4VwjQ9RFhLbiY0aN9HQsB1j8Sw64trICdBuLSPyo21Ai\n1De0ELzBwoCYnVfXSsY4mmKuIRv7rEQQvTOtzIokWNhZpxJniPbGZUSWq2EQ\nxt95CvgyHSBNYPWqCXV4ihKSGx+y1TDHEQsHELIcSjlo8i4EdfWfdwVaU0AN\nWMgQkQW3bpQZeIyjIqNIao4ujQJUoKJ1Vz7t5aUocYCuz0kw2nKjsDN1h8Xi\nXAiD\r\n=GC8z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRRVAplSAXQ65yf6lPxGHSwJWiQGyTR4NvRkRgWNFX/wIhAL6baFZ457WpsjgdOOjVJyKzPUsMvuQPUuN5ShZgQpoa"}],"size":1799,"noattachment":false,"key":"/@putout/plugin-remove-double-negations/-/@putout/plugin-remove-double-negations-3.1.0.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_3.1.0_1607441894441_0.3706463182044326"},"_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":1607441894626,"_cnpm_publish_time":1607441894626,"dist-tags":{"latest":"4.0.1"}}