{"name":"@putout/plugin-convert-array-copy-to-slice","version":"1.3.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to convert array copy to slice","homepage":"http://github.com/coderaiser/putout","main":"lib/convert-array-copy-to-slice.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","array","copy","slice"],"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":">=9"},"license":"MIT","engines":{"node":">=10"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-array-copy-to-slice@1.3.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-rY/AEp7wduimECuunc5PwRq7MhPwDxliGzwkl70geZN+HBbw3loWe9qanS3YYzrB8DBpj2LP4NScx/Xu7wc/Nw==","shasum":"3e4508066ea35bc080969e831fda2ae0625414d9","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-array-copy-to-slice/download/@putout/plugin-convert-array-copy-to-slice-1.3.0.tgz","fileCount":4,"unpackedSize":4301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgf/LUCRA9TVsSAnZWagAAaXgP/0Y2NT2ybg923nzjHRGT\nyFiQYHGuUVb/sRNXHuN4oG98pw2NcegD3Ba1WAAZWasnZqYtiqdyOhqxJbTj\naW5L96JZTiK9u0w4A3A/PGzyuoh7Paq/2CKwcojlf+iawP6odZg45mEGQqnp\nlgbyPWyPcP6VTc5k2rsJMslyDkHWYVX8L2bKth9GnvBTit7V5sroEvx7OCPz\nJXsYWPVQ48+0/g37PVsM/E3CkkeLZKSjr7urYwLvVL4ObuFs8kog6r+A6Zt6\n1O9QPNu1lMLzustX1z0+04hpiJ7l4KcU4EVS2hC35um4Us/l8tOz/TEQMBJR\nUrIQCxSqtRTKmBQG9vMCukvcvHgMCBU6CqHsy1b36nMFckis6cVSAs3CoFt9\nukmhOyWCI2v8cDM1dDAvl7iELTL0vKbMbFB/PfLGB+vF/IZRpXZW6lfjXE+z\nDb3crbM0Kv6P0Ix+Tuzv3+Lu2Vx8qZQibk/aWYs8NADm/1/fapbZ55bYaTbE\n2zjalhpifgihEjRphl4TSKrEfvgSSgBMPb0Kb9YT8wYukLu0QBgiF/jL8Lvj\n3vJNdAC3Xatb5XbsFCeQReIfur85m0W35EQnAZuhvstgZEj9xKI5LriXbbEA\nDsCuiBMnaZwFz6Z7qa9Y3kphrxmMHB9AzQMrSdplP8A3to1sttMbr2zdchoO\nYecZ\r\n=KL31\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtVPWUUkdnfkAYHSxH6OtBKSIqoWy15uUVuJlQOYN9fwIhANSlZTIQZzSfAEJSwMsFBq66flYTrNvQ5AmcAcZ6wy5o"}],"size":2024,"noattachment":false,"key":"/@putout/plugin-convert-array-copy-to-slice/-/@putout/plugin-convert-array-copy-to-slice-1.3.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-array-copy-to-slice_1.3.0_1618997971610_0.554181130346203"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-array-copy-to-slice [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-array-copy-to-slice.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-array-copy-to-slice\"npm\"\n\n> [**Spread**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax) syntax (`...`) allows an array expression to be expanded in places where elements are expected.\n>\n> The [`slice()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method returns a shallow copy of a portion of an array into a new array.\n>\n> (c) MDN\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin convert **spread** to `slice()`.\n\n## Install\n\n```\nnpm i @putout/plugin-convert-array-copy-to-slice -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-array-copy-to-slice\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst places = [\n    ...items,\n];\n```\n\n## ✅ Example of correct code\n\n```js\nconst places = items.slice();\n```\n\n## License\n\nMIT\n","publish_time":1618997971727,"_cnpm_publish_time":1618997971727,"dist-tags":{"latest":"5.0.1"}}