{"name":"@putout/plugin-remove-double-negations","version":"1.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":{"eslint-plugin-putout":"^1.6.0"},"keywords":["putout","putout-plugin","plugin","logical","negation"],"devDependencies":{"@putout/test":"^1.0.0","coveralls":"^3.0.0","eslint":"^6.0.0","eslint-plugin-node":"^9.0.0","lerna":"^3.8.5","madrun":"^2.0.0","nodemon":"^1.14.12","nyc":"^14.0.0","putout":"^3.9.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.0","_nodeVersion":"12.6.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-8l+uD8SRacYrbj7ZIyMoPqCS8B/0CP+Al4c9UpzFC7kRunhIg+2EzAuhv9OOmTHMkYjQR2Ufm79EkOGcogw+aQ==","shasum":"c25fa11c8b35cc647b9baebb0f6c7df0e4fd8367","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-double-negations/download/@putout/plugin-remove-double-negations-1.0.0.tgz","fileCount":4,"unpackedSize":4616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHjh+CRA9TVsSAnZWagAAiUsP/i/Ip61dWOQLRnIkPXCz\nCrDQYm/WjusaSDNxLcb0a4hyZCJ5WcHB+hA2YjCR5IpSlxRpveobmvFudlZR\nO6keBD8xAjBFpWzeZIk1kWWEawwqlHmG5efuAmBkRRwdrKdU2DnXR32mBwli\n4pHHSyykt5vjEvE3kT0BDute32k/SMgFbp99O0KylotOiMAAQ1arlTgqhrWT\n1ba26zcFMMYTg0LGiOGd/8/YJQb5K6C6dCUHWVFwaSFKuzzSBvs+D14ekJ9f\nOgj7AfWlF8loX1pt08MG8vRZT5LPJy7ZiQTKc4IBP10CQwdUWMuKz5+SSbKh\nuKoTX3Z2oZooDLZOuo1Rz7CxesKQYF4eF9OhuBHB/chRupqJkTe+pJwsUSOW\ncffO008aiGWwKsoi6mK2Z8P3XYOAJWRpjWN68DW1LASklVXlvVs5vj8s80Qa\n+fc7q58A1gcHKMXbYG2UluwRRlBAaoUU19jgQL7+eiHHIVltd+ASkeL7kdjT\nnDCJfg1ho2Cb/B1YBsjh0vDY68J2E/c6iBs9LJbvQezMtWCS0L1VsETx0ca3\nDEwXIwZJAEuAxFoshLOt3Y2YDOQ1r3OtA4NX2cuOpdpoYto3lZQEztv7M5hC\nQrKIEkDxzIYkOReS4tbnS1Ddyskr62vQN6+WJ3xbUwo82a3lFhl8+CCH3BBj\nBEa7\r\n=eMzk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFS1fY694OIfTB1IjQ6iQoXkD0sWKh1OHUbV7C3W7GqkAiA177NOWyO9idig5EOFHCt1SsUXQtzUM/+5FbKN/Kojzg=="}],"size":2017,"noattachment":false,"key":"/@putout/plugin-remove-double-negations/-/@putout/plugin-remove-double-negations-1.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_1.0.0_1562261629951_0.33656118008568026"},"_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":1562261630066,"_cnpm_publish_time":1562261630066,"dist-tags":{"latest":"4.0.1"}}