{"name":"@putout/plugin-remove-double-negations","version":"3.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":"^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.0.0","_nodeVersion":"15.3.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Svvj9MSfo4UmzgZXinozidm/BRir1GWIToXkJi1nGQXUjq2PG4bd93mCI5AEcmR1UENrM2QWpCdjAVFFWnWteA==","shasum":"1d3c395f66a057cdd2f787cb652170f1c871d995","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-double-negations/download/@putout/plugin-remove-double-negations-3.0.0.tgz","fileCount":4,"unpackedSize":3616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz5PRCRA9TVsSAnZWagAAF1kP/ipoRCY92KfQ18bcFL/R\nAN/qQej85U7MCCuhoNaJjChF/sTZw+VckwBQm883txqd9M+b0yf+dvcQUCDv\nINpBf1lgDORYGpwAEWO9/Omkmz3hQjBgrf3rxZFKsl+8pl/UwpRETJXT2qsQ\nKBktXaiX5Lk1hUkemxK1BmNle2VPCZXHhfznPIPzsXpwvFHVGXE2bmhL1V+N\ny2uJ+lL4Xb9yWS2s6wTXZWpqZFAz8C2WWGtvQG0TB8fId22pC5StOAAaurAh\n+Q5+LJUB62H5DOLOL4ZYQGeQM1qhMVdOBZQfS9UCvbWzAkxkBafuTTiquGYP\nrMAtOdRSxWwpvKwRExPhC0UCn2HahgOwKjEvCp73ZLalJWSIPUV4/0VU6VyX\nFXYky5V0PZ2aQBZ8hOhCiGLQ/9tRDcmeDZd4kgBYzNsZpI2R5BPp5UVOI0OP\nOTCFbA/R2IQ/MnK013LKhN567RxEObaCOpQhHPUHYlPfAv9vsKYrrEdrpiHJ\nHyVtRrrd/bvV01jEKMYavrP1y/PHbs4uwSp24PCoy+93sNJ2ECueaihd7uGx\ndFje8FuH8/9t/NoM9nThUMyQf9AEYOCP1iuO6ftOil/3ADUfV77TNCENP9kc\nZEfrIX6jswOKDLotSBh2SK8aoho1Ld9o5UeBUoWHotaaRo+lYio505vaJViE\nYnlh\r\n=vyZ5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQ1DEY/t3tZP4wBsW8H6P0DS/6OKoeGdIALxlbfRvPSgIhAJwJ7UyOIXLoFVkCp5oqtihdsauLJPLNL1UnzWU8vHVS"}],"size":1756,"noattachment":false,"key":"/@putout/plugin-remove-double-negations/-/@putout/plugin-remove-double-negations-3.0.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.0.0_1607439311922_0.8272773148919828"},"_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":1607439312084,"_cnpm_publish_time":1607439312084,"dist-tags":{"latest":"4.0.1"}}