{"_id":"@putout/plugin-convert-any-to-primitive","_rev":"3-241f60f9e086a563927bd531b504de0d","name":"@putout/plugin-convert-any-to-primitive","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@putout/plugin-convert-any-to-primitive","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to convert any to primitive type","homepage":"http://github.com/coderaiser/putout","main":"lib/convert-any-to-primitive.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","putout-plugin-convert","plugin","convert","generic","shorthand"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","madrun":"^8.0.1"},"peerDependencies":{"putout":">=8"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-any-to-primitive@1.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-81ad1CZOUQzS0haJdYr0/hBTPl1/KxiTCegVlOR/0GqCepQRYLvmAaGSN70BFyI7dvFZR5kHmxjJqbW96Kbr+g==","shasum":"37b63b7210849632453a2973a28e64013ed9177f","tarball":"https://registry.npmjs.org/@putout/plugin-convert-any-to-primitive/-/plugin-convert-any-to-primitive-1.0.0.tgz","fileCount":4,"unpackedSize":5218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS4OoCRA9TVsSAnZWagAAXUMP/0PBVGMIu1Cl7tTPZzgP\nRriNrkNhJjoNx+kxmWVscRsHihGBKz0Jbrkg4/IN2vAqVQDYdhGOmc5fYrge\ndQJ8VRzvao0VnpW3QXbypZLUOqMo2C9DUxOqdRObErFPC/nW/vtZUuEfjP96\nVkz9Lh9HncjES9QIcv1bsocMZhc4oST61df5C7W7D9uBu8QAAQJhVrHHY4vT\n33Rmql3PKetAvE2dCJV6OljIjbnMgUusb8kPeo9iUjZ8Uv7PLnAHmO8lbWuF\nRwZqXDNJhbLaspSQ5S8+ai0tC9a52Le0XGNpU5U1UFsVNHLU99aIv53thBa4\nXzeqyhdZsZjCUzhnfXRvRH9Up8NGA2i0wTAWYPUTL9yt9WeZirB4WuFhAhHb\n59pL4R3AbA0vGOudKNwlLvY2Oo/sqjTA0JofwWTe0YQBrGAGYx+6IgEEHug5\nTfOp+Q6/AEHTDTKWv58xGFaQTPFX6dpm3gxWaONrlaxozoRSbKsxga8kf3+d\ngzHDfALZ+oB4csW5SrvrFpBRv5nEx5AFheSwQdW4nvofmcfcE5bF18MaXzFp\nfqxZhpifWusMAzcUAyaWjEDro6HL2jzjlLeYDgVSH9RaZvFAv/7nX/1a3rn/\nCZrFiPgCmDA+qljcu/1RBj8vD0KsIfQNcjGu47+u33kU8zUhLH2m1C6gheAk\nDWnA\r\n=4lDp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsl1WpXVayrTJhQ6JHp/LMfVV3gSBlV/BfNe/Jc/Uh+wIhAMYB53D/JX+AAnIU9XO/rCdbYXoZUtomYO2PSDaVeE2R"}]},"_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-any-to-primitive_1.0.0_1615561640149_0.6328849132894139"},"_hasShrinkwrap":false},"1.0.1":{"name":"@putout/plugin-convert-any-to-primitive","version":"1.0.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to convert any to primitive type","homepage":"http://github.com/coderaiser/putout","main":"lib/convert-any-to-primitive.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","putout-plugin-convert","plugin","convert","generic","shorthand"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","madrun":"^8.0.1"},"peerDependencies":{"putout":">=8"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-any-to-primitive@1.0.1","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-k2FQgmkNm4D/VNqSTk6cdEWzI3JWLz/OrFpka5CgXc//sGBjvfPwVFYvy24jJsjAAkOeHFLJkPmec03Y3AAKow==","shasum":"b733d2d1c2434b18b872d2aa9d0902127ec3df75","tarball":"https://registry.npmjs.org/@putout/plugin-convert-any-to-primitive/-/plugin-convert-any-to-primitive-1.0.1.tgz","fileCount":4,"unpackedSize":5151,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS4VrCRA9TVsSAnZWagAAtAoP/AsFtDKpToSq4UB1biAT\nryW/0oExehnwW65EWp3X+w5MQ5zlU0VaVThkqwd2x3e0W2Pqh/FwrLR1LCo7\nuaeLRNObr0b+YOzwgofn4b7x1yjqvezHH0bT+ZdSHmUg0Y50bA9OkopsuGMJ\nYUZzwtn+hZ+O2+uSAvEBq1SW0hiUxhD2VrRkgLd8gnxOnaBoBeKLpgUqeY57\nb8BQyEXeWnE35IJbE95SIgORLUUAolQJP+5zZWB9muKKUaqINV6TEyMAM6X8\nt6fMkRp/2hxsGJTZMSL5djFX8oHoK+pjmVmeetMW0SOGcSQ7lSKkPHmPFY/E\nq3KYQpE84zqnVBhNJFwTYzDbml3nvOffu05Fh92iGz+RLlUc3tO3UrVIyG42\nLhx+S10DQo1C5/oVKuDbZpPVXoPbZI+F9+/JZipj2IN0EifpRepcp7RERNHA\n3IxxHZT10PpC8axrfXdbB0atfINTEDI05etAyrRk1xz9cgKZlRUHsZ8OsOBp\ng0D+Mtg+AJjPLpg7WDL1PQsAyW/6J9Nomgs+Etu5XDSu7yn4bl8mfUo35OYI\nqsscHcbWm9E+ojXREsFDZ8a6UlrKeuSVMFsnzfImi0AqGIIg3Df180OAYtgg\npwrCFYlHhtGYQMlPjNKENm6khLY0ECcmp3Obvr3FBSaKdySqmFYcWZ8U/oIu\nxEwZ\r\n=Lxym\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPlSO3+HClDZmk2NOstWB4aiahVPbjraPpxUO4kOemvwIhANpT1nIyYO43n90DTG5NxJf0GrUQvxx07CdZnTvBEJFe"}]},"_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-any-to-primitive_1.0.1_1615562091072_0.5016662266936427"},"_hasShrinkwrap":false},"1.0.2":{"name":"@putout/plugin-convert-any-to-primitive","version":"1.0.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to convert any to primitive type","homepage":"https://github.com/coderaiser/putout/tree/v24.0.2/packages/plugin-typescript","main":"lib/convert-any-to-primitive.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","putout-plugin-convert","plugin","convert","generic","shorthand"],"devDependencies":{"@putout/test":"^4.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^13.0.0","madrun":"^8.0.1"},"peerDependencies":{"putout":">=8"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"gitHead":"552ae3a3c5c8656b89aa23aed69532f0d52f35e1","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-any-to-primitive@1.0.2","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-bKCCb+4AZ+UzCIkB+WxCFHrhFaAL9kI2sOUQZQdCVGgII6/rewD9GLj65TBag0RpHzRZrj1mdDB9VnPL2ZKBwQ==","shasum":"debf48f40c5d8d5fc2ea9be113b0aac5540d5987","tarball":"https://registry.npmjs.org/@putout/plugin-convert-any-to-primitive/-/plugin-convert-any-to-primitive-1.0.2.tgz","fileCount":4,"unpackedSize":5009,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4ChLCRA9TVsSAnZWagAAmbMP/Rfz7cLrEGoWwCZZa8DY\nfrzUn5KSU5Yp9o7ecYRdbvfSP5zavj8uOhZFXzWwJ2VQ0JYigI7QT+KeFLWQ\nrnANIb/LFFEIDhetueM/ZC7W4NbFYbqSWxsoaGIV1AZNPmBhCDlF6JexNdUO\n2UUMvo3FVyc7mlwPAlPklyxiA5oOsA/0l3S9bP+d/qxZGywLz2PW4aioA+Zd\n4uOBA+hpASFrCObwA6bwzO5szQCGUBRzjrZZnRpblQ7dkVixQ7p2bgIaTAfE\nrifmTsqSzaL4TtWu1mBaFsQ9RBrQL7HHEMEACdZkERaEAEJuO89BMgepgt6E\n/LQw1f+H70QoaGgdPxMwkS8swxdzwU/ZViFHim8KBz4iJte42tRxA+zv61BE\nxgECpLnV8cQ4eaISYCtUaIArD3FwIU0K8G7ejYYt6EeEnRMC1BEWUN4u/274\nFVU/9ggUdjROWZUBLIV79GA3M21+xA19l04OAUxWLByG1/H+wyB0d9s3VbNm\nCQnhckr+REelefAGvSXbu8CkygGrh8ZnD2ZnoKaY31RdWaf6hI3l5GO3vjnl\nDL+cr4idnk5ZnR9/b8Z/sL64dJ1Z2fZJBHUrXmJVDpX/orgqfIwSEuy+Su2P\n21P/BjxH0zNh8HVLwAgOH+18Rp2r1rUD3aQjZJ6I52KLfuY9gYGdtLTl80EC\nFg2D\r\n=4Km3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCk53DbLe3UqvxhU4QpBUHWhKPgQ2Y5Eh8gZzKp/oMIYAIhAPOVcfRNM8lPAx4JpCSAxRpVD5ss6S5UVrxmuxTANYWg"}]},"_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-any-to-primitive_1.0.2_1642080331449_0.021028242376978312"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-12T15:07:19.987Z","1.0.0":"2021-03-12T15:07:20.288Z","modified":"2022-04-06T17:11:51.966Z","1.0.1":"2021-03-12T15:14:51.240Z","1.0.2":"2022-01-13T13:25:31.664Z"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"description":"putout plugin adds ability to convert any to primitive type","homepage":"https://github.com/coderaiser/putout/tree/v24.0.2/packages/plugin-typescript","keywords":["putout","putout-plugin","putout-plugin-convert","plugin","convert","generic","shorthand"],"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-any-to-primitive [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-any-to-primitive.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-any-to-primitive \"npm\"\n\n🐊[`Putout`](https://github.com/coderaiser/putout) plugin adds ability to convert `any` to primitive.\nMoved to [`@putout/plugin-typescript`](https://github.com/coderaiser/putout/tree/v24.0.2/packages/plugin-typescript).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-any-to-primitive -D\n```\n\n## Rule\n\nRule `convert-any-to-primitive` is enabled by default for `ts` and `tsx` files, to disable add to `.putout.json`:\n\n```json\n{\n    \"rules\": {\n        \"convert-any-to-primitive\": \"off\"\n    }\n}\n```\n\n## ❌ Incorrect code example\n\n```ts\nconst x: any = 5;\n```\n\n## ✅ Correct code Example\n\n```ts\nconst x: number = 5;\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}