{"name":"@putout/plugin-convert-typeof-to-is-type","version":"2.0.0","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/master/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":"^4.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^12.0.0","madrun":"^8.0.1"},"peerDependencies":{"putout":">=23"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"gitHead":"00140b10dc5495e0b3e68fad388c57607cf858fe","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-typeof-to-is-type@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-2CcXbASkkBuToLIj72NGXdzSfqP5+AuihDGCxWyA1gHmJn14N14kB+hR98nuVBdqUN1HrCpH4bvRdWnqiuikXA==","shasum":"5feb144c5c84896f94f621f3f4229005b1456ecc","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-typeof-to-is-type/download/@putout/plugin-convert-typeof-to-is-type-2.0.0.tgz","fileCount":4,"unpackedSize":4769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyEZXCRA9TVsSAnZWagAAw8AP/RLCeG+WZ6QRLV+WKtLW\nrM9TBDLNi0L22EAThM67GOMBlctBLsLTBmnA98UMZHPHFrnfMIcDvENa61T5\nMXgdVqkI7b9xMpg16MsJbmpkyjDliRk8nJyn3kVhQNUegXtWLg5tgvaUGSq7\nvCsOgeG1+cdI0maxtCKBJGt9yYBrtI65cCh/zBUDHo2AzrYVfMjbIRrZo1uc\nWVkdSjETe3iSJWFXpANnDe4nn+0wgKTss9JQxY391DO8m1mJon4X6Uhq6mMW\nM1lzJvKJATcKYeuCNrgv5LHdYzlZAZe62jVy2JAf6+uWiwAhTqRNS2BhhSJl\nEAaYQvsJZJfH/r/ul3FdVdP9tQB5yEt3KhUfxHPveOg7IM71jhMTBBwkXDW/\n5ymiR32bSHx0P1b648tIHlvZ1GOOIrU1ztp/pqNkqZap+TsPsp/sOKBz9MSZ\nKQFgq/OsFIQ54Pod1EPUrjN9rEjd1LmomkqSW5DquwDGQkzsuJmFwtvW67Rc\noUU4rhwtFBLoO6Q3z3ifuEmR1xnDsK2gbOadCAJNNyiybN5JXz3GG1UU+MEK\nXEwfNl8zcCcIqqwUewffDNDYtIJfoMcEtx+3S+6FceuvtEQhYCLT1ycUqAW/\n4iQZpwirb7jS5hAmTsy5TUdI7TAfhdfOM15paPPq5yMJKvAWCW0Piv7oImfi\ng0wj\r\n=Vl0l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCE1911/LnJOZdLESWjb4C+s+nIU0vldnin9FLylakGoQIgREtvauS5KNExQRudS7f4CZ/jizvaixia9dIT7pqs9Cg="}],"size":2152,"noattachment":false,"key":"/@putout/plugin-convert-typeof-to-is-type/-/@putout/plugin-convert-typeof-to-is-type-2.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-convert-typeof-to-is-type_2.0.0_1640515159407_0.5861761919610751"},"_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":1640515159537,"_cnpm_publish_time":1640515159537,"dist-tags":{"latest":"2.0.1"}}