{"name":"@putout/plugin-convert-typeof-to-is-type","version":"1.6.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","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":">=20"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"gitHead":"8430a3d3d4ef2804f5dc7afd23ef45335a93b035","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-typeof-to-is-type@1.6.0","_nodeVersion":"14.17.5","_npmVersion":"8.1.0","dist":{"integrity":"sha512-jUFz8oE3IhL6QPNPrg8ZErdvtn8FB6gZOGIEDqkHKkPVf+KTZqi5h8ao54n+tyNxmjkDPVO4zBh1foUfriAb9g==","shasum":"97f2469c1bcd9aa77b3a99a6ae8a5117f8253f3c","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-typeof-to-is-type/download/@putout/plugin-convert-typeof-to-is-type-1.6.0.tgz","fileCount":4,"unpackedSize":4963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhs0HUCRA9TVsSAnZWagAApoAP/jwIA5GtNfBvKyT1k7Wz\nuxLkgoR4wbo+TR/QxGihyX3T/oEchwliPio0ark2ksuOOg+uRCvyeCjEazvm\n3KRGf7Jq4TpCEvPMnY++c5gqAqKiyLIgG7WjhOgUcq/vE5cGlCKMByrqrAAb\nTncU1+k52YG6Z8UauXT4xeifbUzw41p01YEJUWxwj1dtYrUemNH9JcoBxGbP\nOFl6XbQCAY1Mfj1ds3k10owzg/ha3Aoxq9mJr2hMBUZ/hCIA4byRisE/8UJs\nCjCKHdsM+3yK9GCDCjGmaR+0REDTliSJCgXM0sTZ1NKeEW1DyffP7UZN3TcP\nYmtYc9JfNUapMp70o14k3bzZmzy/j4VMKRnH1MWps6KyH3anG0rGsjFAhEWG\nuJ9m02CUxbsA4W1mA9vdf80deY/e1/H+oQYg5kSMxssF6G5EkIAcV8XHdjPM\n5sqOsCqzR2J37daJvNoSV1/IVd/wCvduEeV1XNboIGi8RMeNmXClDI7B8irl\nB/5XjNJdIub9NaunHWAMEMiDSrszEdNFmBHQWL2vZzYzBkx322AaQdZ+NM7X\nyS9VC6OWgAnUrJlRGFgcxSF3mNZjUVeteAdoaybA7TcGs0RmcMWeYs2pX0v9\nyP3eOmYzBh6ZsfyVEalByCXg8SvWaQz+uYxEQt1/AD0Jy05UiNu6kfHNsj/f\n5K7u\r\n=/7h1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJ4BMJfLcADxhJnkHN7Kw7Ij359LOszIknuvUcec+cyAiEAv41cV3SNVM4M7Dw/wTpg4CVEMHIKkqCh9Vqh6ZU/HQo="}],"size":2189,"noattachment":false,"key":"/@putout/plugin-convert-typeof-to-is-type/-/@putout/plugin-convert-typeof-to-is-type-1.6.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_1.6.0_1639137748420_0.699058477269402"},"_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":1639137748745,"_cnpm_publish_time":1639137748745,"dist-tags":{"latest":"2.0.1"}}