{"name":"@putout/plugin-convert-array-copy-to-slice","version":"1.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","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","lint:all":"madrun lint:all","fix:lint":"madrun fix:lint","fix:lint:all":"madrun fix:lint:all","putout":"madrun putout","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-convert","plugin","array","copy","slice"],"devDependencies":{"@putout/test":"^2.0.0","coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^5.0.1","madrun":"^7.0.0","nyc":"^15.0.1","supertape":"^2.0.0"},"peerDependencies":{"putout":">=9"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-array-copy-to-slice@1.0.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cwhrbH/JrcrABcJhPkbfY7cXJ9lzMpLP1oo6ONl8LrhGaw/Uy7h6M+42S7xTwt12pZgSYsRj2sPtP3KHmPCB2g==","shasum":"f851c4697f02d3fafc1c089853dab3ed98903d4a","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-array-copy-to-slice/download/@putout/plugin-convert-array-copy-to-slice-1.0.0.tgz","fileCount":4,"unpackedSize":3708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFCk9CRA9TVsSAnZWagAAYMQQAJKNrH3Id3yJPp39YSZL\n5cMrVWMDB27fnxMdlneQ7MMOxN50WMYQn8Tqyca/lrM6vhWpI57r/oW8IRv/\njfu8aVDEl9OL82GslAtR5AttAnTcgP/kYRoPqlUJ7KuI5PNuUfY38svH3FZg\n2dY7+RSqB90AHJ2C0s5z2WkBDTWMwR4FvAKTh0lJoaFHgzQvBi7sAOy279Tg\nIjyLvlLLPzgMubUHRGbHJkrzK5FztMY1ysv0ixXPHaVFomr9MbcoOnxVQCel\nG8AAvRphTt6Fu8YF/Lk2UI9Ihk+ISzOoh9TTJMCk/a1qIs3YGddKXbd28rs/\nGf8hGm9aEcDDF8kzktXGsvs/XaXOTX6xHxRQrVMiUbn/jeBbn1pLb6ZLUGyV\nnZvALfW5L+JNlIb9ypjrzchAyik2vqCxkoFcqAh/xJF55QM3YKx5XIKppUuq\nCAnr0Fz3rCO2Sf773X+mea55JnA2mu3nbA0dZM9eeTr81Nz3rdIflMQrnI4M\nN+Zij+ypPJLTBMDrjSDIIBo47k1GpV12If3YF+KV+o8aWy4jlvxqC8nzUBB0\n7mNqnY6B88iGvpsqG1pRAnu9qarrJXSusuWFxcn2Buz2MkVNuo7bQA7vWvhn\nVGO2wFBSlHTFFiIYHRGtmtANaynSF4hstlcGDMrUbuW5eVOrxGl8N8QCEhqe\nXTTx\r\n=H8Pb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzbIKLUXpjtU02hyEvwmFEGDB1147bsZ56SGktCa2wvAIhAKUwoboL2IeC0suWgdyLwpa0lbIV/Jwx59SWM7Z8RufW"}],"size":1799,"noattachment":false,"key":"/@putout/plugin-convert-array-copy-to-slice/-/@putout/plugin-convert-array-copy-to-slice-1.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-array-copy-to-slice_1.0.0_1595156796529_0.4136153665272526"},"_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":1595156796664,"_cnpm_publish_time":1595156796664,"dist-tags":{"latest":"5.0.1"}}