{"_id":"@putout/plugin-convert-bitwise-to-logical","_rev":"2-b63a4bb91377acde3b1ddc2a314a36d9","name":"@putout/plugin-convert-bitwise-to-logical","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@putout/plugin-convert-bitwise-to-logical","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to convert bitwice to logical operator","homepage":"http://github.com/coderaiser/putout","main":"lib/convert-bitwise-to-logical.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","convert","bitwise","logical"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^8.0.0","madrun":"^8.0.1"},"peerDependencies":{"putout":">=7"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-bitwise-to-logical@1.0.0","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-AAI6kDWE1vbU3VwbPzAmM/LF6ZJs1cGxbql4nupSD4ip/womWd0zzm0i3AG9UetfdDEUC2elB0HrIRHC/F+1jw==","shasum":"95e995f94ca2f7fd39b9db1a10cb6106e07077c0","tarball":"https://registry.npmjs.org/@putout/plugin-convert-bitwise-to-logical/-/plugin-convert-bitwise-to-logical-1.0.0.tgz","fileCount":4,"unpackedSize":3486,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5EAsCRA9TVsSAnZWagAAzQAQAKObBkFVd1s8AC8CDrpS\nIGQyFDULSdanIW1oaBxOA5tXVKN2oXic1DSehu3ojz8KiwwxDaYNXgxcwAlc\nZdiEC4KVT5bYv4njMot9jbHRRzKiYCz/hfcoAxeu1W2jWzvNpobkpHlv1gXE\nAJaO1KnPkF9W8kM9APhqQjZpHfUpmk2cSTEXdIiL+FMdpZVGZRWPqQE+pH1s\nzvzWEBqZ97u3SR8KI13xyDR0LtkaXuRV+2sBGw6+y0NAkEi+OnzPXY9U37Uo\nVbBrMrp+DFodNbZgi/WGeK80su6VgvL3ikjRHDZTUHYehD+MQK2R4cEz/FJS\nyi+IZAF3wR7FxU86Wp/L75XhPz7NrDEmNYbD+uvioCJ9SlnAM4ijMa0KErp8\nXvrLS/UKFA5GXv+sGnHBJyqnoXTYOI5Kox9P/X35wVsaOF4bGO1hMJJFTXLS\nrA96h2cPcUS/bSw9pfGXviFW7pA85T9unsLiuLLr8A+7a2ihGV5dI1Le258B\nF1cYYMpnclPmb+1B6ALSGx2okh2aLr1Uu1WwD3wPWVZ49c055axAEmJI+4US\nejt5Oqx6XG8Vf6k9qUUZGWbwNUrYaWhsMd75h3qq9/WSRJdnf5NSkLDzAGzg\nhfMILWOBLv57FHjpDIplBgskRye857ju5qYQHStA5Jtd0TCA1+tcJPyZKlfM\nbT7w\r\n=2Ttp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcKOii78HvWr3rbspdIEm0/x/28waJXenWSrLrBfFqlAIhAJbhtxKvdHOWqSuV2hJJ8YqFcrEykCPFbMEf8hRuFPfU"}]},"_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-convert-bitwise-to-logical_1.0.0_1625571371648_0.912764035948443"},"_hasShrinkwrap":false},"1.0.1":{"name":"@putout/plugin-convert-bitwise-to-logical","version":"1.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert bitwice to logical operator","homepage":"https://github.com/coderaiser/putout/tree/v27.2.0/packages/plugin-convert-bitwise-to-logical#readme","main":"lib/convert-bitwise-to-logical.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","convert","bitwise","logical"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=7"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"gitHead":"6e9aa5db875b2c76d6f917727ccba609cdf615b5","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-bitwise-to-logical@1.0.1","_nodeVersion":"16.15.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-Xzx/jtTnDqRlpCJj3+l/gOqWeZBPCC5GWXdSQ29WBmw5TWYb3XdYKwkrZh+WdiBiT++3c0oHLTfgvPxuUN7MKg==","shasum":"e8dbd853133cec19d693c01d6d867d985c179ecf","tarball":"https://registry.npmjs.org/@putout/plugin-convert-bitwise-to-logical/-/plugin-convert-bitwise-to-logical-1.0.1.tgz","fileCount":4,"unpackedSize":3882,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIElcWNrBmgJ3KXRJua2EQ+Lz1gockmGNpJSepT4RZWyGAiEA87VppwLW4WIH14D8SMjoQnMDE6VbKIJvpO6tzlTH67o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBepeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1LQ//UXF3sWmtUb53J0fdyVar+XOQNS9IBBWRyecjwFoMItert4mO\r\n2bwBpSS8JMQIwyIejcAXFsHOJXJOMigoXbxrUhQsyDEY5E1FpUixEbcOp9pO\r\nVsSMe2V32fHmm4Tw+e2lXFG4xjyO+0Czfy8qAa4UOyeGSHMTOGmZr5FtM+63\r\nQ12Q8f9jjJRSgeUYn0CAjF1ylSGNRTilAdvIQSrIq3SIJmcaa/GI8XPvGlHi\r\nRyWlrbYBIhPP+JR1knLq1vB/UtJvg/3lptDwf0z2Ftam16UfF0WhuV1ryVD3\r\n4zEuUbqu7Nju5CmtKPNZN6HjdYWdlSJFSL9sHPifXuNz337uIEBatraURPVF\r\nIUEjDU98Y2uFOp+9ay3t93VogNoXFttNpVVDA3MLVhcg8mRvk2ZTYL+b6f/8\r\ns2cg0PMTQPTNLTGoIdyfkTyEXsV282iIp18kI4BRpo35OCiZly9b4zalKzxU\r\nGrstKbaJa+kceAPSlrEhzhilDkVCwa3EfmtJLal8ilFp8aNY/xHrVn5qhttG\r\nqMKCMn+MqeKOH8S2TwhN9WSuxPxiMA5TeK7Mzsm6jEapv+kgaGLQGCTobynC\r\nsh3KksVQSRVxjCNA5D4SVG9i5DsL872zbwD/k4IKhHGSVN4w+/vJolnq3zGI\r\nbAAATVfsy432Z0mFwq+tOksHJjuy6FyLHkE=\r\n=6Bf/\r\n-----END PGP SIGNATURE-----\r\n"},"_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-convert-bitwise-to-logical_1.0.1_1661332062573_0.8085163358057352"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-06T11:36:11.443Z","1.0.0":"2021-07-06T11:36:11.791Z","modified":"2022-08-24T09:07:42.893Z","1.0.1":"2022-08-24T09:07:42.802Z"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"description":"🐊Putout plugin adds ability to convert bitwice to logical operator","homepage":"https://github.com/coderaiser/putout/tree/v27.2.0/packages/plugin-convert-bitwise-to-logical#readme","keywords":["putout","putout-plugin","plugin","convert","bitwise","logical"],"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT","readme":"# @putout/plugin-convert-bitwise-to-logical [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-bitwise-to-logical.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-bitwise-to-logical \"npm\"\n\n> The bitwise **OR** operator (`|`) returns a `1` in each bit position for which the corresponding bits of either or both operands are `1`s.\n>\n> The operands are converted to 32-bit integers and expressed by a series of bits (zeroes and ones).\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_OR)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `bitwise` to `logical` operator, when one of operands is not a number,\nsince mostly likely it is an error.\nMerged to [@putout/plugin-logical-expressions](https://www.npmjs.com/package/@putout/plugin-logical-expressions).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-bitwise-to-logical -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-bitwise-to-logical\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\na | !b;\n```\n\n## ✅ Example of correct code\n\n```js\na || !b;\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}