{"name":"@putout/plugin-convert-array-copy-to-slice","version":"2.0.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/tree/master/packages/plugin-convert-array-copy-to-slice","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":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^10.0.0","madrun":"^8.0.1"},"peerDependencies":{"putout":">=20"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"gitHead":"8a7db6bf2bddc6eda6677aa84f05104cd60cea72","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-array-copy-to-slice@2.0.0","_nodeVersion":"16.8.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-ZkThndnC4wkcWCpv/0f2VxSdKvsBYx+m1H5u7gI4UlGPMwj+xtgTUobA4Pt0iTBtw4a7i2xQYgRytoMPquLu2A==","shasum":"9b5100365487aafff583535ccec6069a73a277d2","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-array-copy-to-slice/download/@putout/plugin-convert-array-copy-to-slice-2.0.0.tgz","fileCount":4,"unpackedSize":4394,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2XmcCRA9TVsSAnZWagAA1wQP/jhBQJo/nMf06GrYwSTa\nN5XsQr/RRBbNWLr/B79KOsfxPvAuNSzQNlQHBY4Hsv52aHJt1IdaMHP2NHMF\n6zRc6oSfualnhVLLB3iZ0UknbJo9uaDeaxFouDUvRN64vpFjS0goHnFgXrlR\nx6EAdhzRgcs5JtCmlHs0aZVhbfhk9QdyI5HdHt3EGvxgiGo4BufR7aEnUMEz\nVAfC+4Xkb4/k4zr89MiB+jKAKNP0uCpEPqUhQJF5NRoezT72TjwykDlGrSl4\nBQwVEHqgGZs76AhKz5XZ8zCPRK1zJii3mxAwM09dee8QgQweQjbbBm4YcNt2\n3fzAEJG0PTMpLDo45LufZyQBrVwpF3xgz80IHtpUbPTUrxcWLHRBDKZoC8kb\nE/JYCkswzZTuW4ZTFx5jlkqRs7R8pnVmQBMZgdWwvhgU0Yxok5UVqcsSH+D4\nSvYib3fSDAq7VUxNs1xPJmWCtennSgrInEu1t+d6TZ/jkCyfsw4ACh5x8w6B\nPxv/X418wrxzDuIh425BVjK3Odoe0LSa1FLiZHao4JbWr4TTlGpoHn0J9qH5\nhordpyaEmzegLDkhK0BrPntF91gtP9jkOH3x7fFB65eQFmokLgLPcRWCVajM\n1EIQOE3pezZYC/kI4EESX14wJY/6D9Aer4vh84e+2ugCuhvIcgahMl+9FB2X\nDMwZ\r\n=5XQ0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaUOHGl1+iMeNjE/YhGUrovEHuSCb/kHcRvDEzQ60V1QIgLQaHwTJTj54S0RHzlIxpBC/FG08LsnkWHW1ikPfMgn4="}],"size":2052,"noattachment":false,"key":"/@putout/plugin-convert-array-copy-to-slice/-/@putout/plugin-convert-array-copy-to-slice-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-array-copy-to-slice_2.0.0_1634751320218_0.5153532972689532"},"_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":1634751320336,"_cnpm_publish_time":1634751320336,"dist-tags":{"latest":"5.0.1"}}