{"name":"@putout/plugin-convert-typeof-to-is-type","version":"2.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert typeof to is type","homepage":"http://github.com/coderaiser/putout/tree/v28.19.2/packages/plugin-convert-typeof-to-is-type#readme","main":"lib/convert-typeof-to-is-type.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","typeof","is-type"],"devDependencies":{"@putout/test":"^6.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":">=23"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"gitHead":"7303d4702cffb932b36420157925900b7f61c3bb","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-typeof-to-is-type@2.0.1","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"integrity":"sha512-ehr9O+kYAtL9dvWkw/t1x6vScvn0gP5ZTFUvjNf27zq4Ze0JcSPTNkwykIbQYtOjJCGYxGzQO3bKEm8/pumuoQ==","shasum":"3684e8d19b1dba10affe85c77b1ee33e3b79c5ca","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-typeof-to-is-type/download/@putout/plugin-convert-typeof-to-is-type-2.0.1.tgz","fileCount":4,"unpackedSize":5077,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkbKjm+G4Ra8GnGKDndNiCicYGy5C8HjQsO88HgpXm0AIhAJcwZzw6+zTWMICVWu+uOoUJ0IP8OCz4VkznJDNJB5pk"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCy4SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr81A//R2daiwpA2TLzI/6PRSISawj3PioSrg8bKkB6R6JWVJv2F2Y0\r\n8dV2SVANc9CJyEA3LKP01B17gXeh7lRxa46Qr8akN+X/O0FLN4/ICv93v2tV\r\nWP0SzJ/p9FK/yKdCf+Zub8Gpl+HxRkh8Qa3ihdVd1K+na082Mx25aBQlFw/a\r\nqpmyyHogn+WwMbzMMEwy/ODt383I2lAv5qoDeTOTq16dr235FllmaJvbiXjF\r\nY9NcRoDWjou+enyN/JczSbKbj2loOShMU84APKngsCPqwR9TDSh1BAq5KkcO\r\nDhooyLxGa3oWsN7towoDhotk6ZM5ddj8sl+lhkXNJ3Ip5Naxz28ZBBDU2APq\r\ndGGhf9WVcPPkpcrT2SuRWqUkwzf7Ay0G2a28pL+eGF5SzWsXtHabIUrNIOQX\r\n8fu3flfqEw78FkGF9jRJRSYLv/Uz1qsXv0yjqhM+4u0sh/ZFqsfQYUX3Sg+b\r\nH27WVWXD28F/6lUhPoJEGP2yeHl0BaSOXFL3/RwPQ/7jtGRTdS4EmpROQIeU\r\npq51y1C/x+wnclZGix6LhGTDieYD6BwqzeLzj8bqA9qy+PImh0RZDrH5zHIS\r\nGOrh6LfAzntoQF3M3udA2RJN0z8BGV5ZmDYYSrMKIan+N9LgiOszRHOqyZ1a\r\nBBrznVE2Xoyy68DJ/au5OyRWprzQA7CDPFk=\r\n=dk9c\r\n-----END PGP SIGNATURE-----\r\n","size":2309,"noattachment":false,"key":"/@putout/plugin-convert-typeof-to-is-type/-/@putout/plugin-convert-typeof-to-is-type-2.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-convert-typeof-to-is-type_2.0.1_1678454290446_0.131016159830327"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-typeof-to-is-type [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-typeof-to-is-type.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-typeof-to-is-type \"npm\"\n\n> The `typeof` operator returns a string indicating the type of the unevaluated operand.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `typeof` to `is type`. Merged to [`@putout/plugin-types`](https://www.npmjs.com/package/@putout/plugin-types).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-typeof-to-is-type -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-typeof-to-is-type\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nif (typeof a === 'boolean')\n    return x;\n```\n\n## ✅ Example of correct code\n\n```js\nconst isBool = (a) => typeof a === 'boolean';\n\nif (isBool(a))\n    return x;\n```\n\n## License\n\nMIT\n","publish_time":1678454290603,"_cnpm_publish_time":1678454290603,"dist-tags":{"latest":"2.0.1"}}