{"name":"@putout/plugin-convert-array-copy-to-slice","version":"1.0.2","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":">=10"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-array-copy-to-slice@1.0.2","_nodeVersion":"14.7.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NTEqMhRgceDSxtTjYKgxQkNhu0gqajZ6+sOJ7hgvjSYrgj25UIJLzAyjdWmsRv67+Abs6+gWR2MI9BoLUDIZHQ==","shasum":"97a41f8eb8d43daff59202f002780e61ea9d9e4c","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-array-copy-to-slice/download/@putout/plugin-convert-array-copy-to-slice-1.0.2.tgz","fileCount":4,"unpackedSize":3783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJsiDCRA9TVsSAnZWagAAftkP/11Kp7jjr0M5bFt0j+Ib\nyGEc97YqcMxDvvz3vMYFXOcBramlZwPBudIbpcYYutOQRQ25w7OHQZcKTpxt\nQMxSSwkaEmOhz3if4wkjiiywYE389DiX36QP+7kFjK4yuH26eoAoVY60z2t/\nvBE1K6PAFj0OXtqZK2MwvFeLEa1ux8S+SUSx61kfLZjyqj9cEDDqEQdoZciH\nfWN5OYFMV4EljyWQ68zFZaUWF6JPh0FflVguBkotm4SLXLcEDipVsiFX+HtY\n100+C/bH5FflnTZKL5/opbRXLCXqDEi5C9DBeiuaJBkUYYW0OwuTUpZnQM17\n2/Il4hvV8Xn9n+oXqXyw/bSYjvd5pIX4XdHS7nmkJfbDFHerToCD7Vt5gM8F\nXMaiXVySqCEgfaeaMea6r3+paWiSrdyS5T/H6q2xn9mL5zBJJX0nX9o/0X+q\nbVTRRBhkdGjUIY9dC/4OEul+EKqPHf4HDKNG6hdlHAN3HI74/ywu8PNJ9/Ou\nsE02jvIL55e0VrIUVpYe3ciDLlXloAcXMGhptjVypxUaNV1Q/kM0Uj4GCWop\nvjcXomQWTpp6fm923TEcIyNjAy4eTS0qud9ewZhLPlWw/8A14Y30ibqVYoWl\neW+NoG6YGR190hlx6Jm3J8ZeTe9RO2x3NA5JHgyvayfNqElNwLZLssv/gFOW\nO3OD\r\n=RL+J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID0o24ilX1E60pWufaLwmUVRu4IisGWNF4cWuAFyxwEeAiEAjw2phVxYz9OYw/EfnRtqCmp0ZSxVQT3PV2XV/34HCI4="}],"size":1854,"noattachment":false,"key":"/@putout/plugin-convert-array-copy-to-slice/-/@putout/plugin-convert-array-copy-to-slice-1.0.2.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.2_1596377218848_0.1697176409617367"},"_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":1596377218986,"_cnpm_publish_time":1596377218986,"dist-tags":{"latest":"5.0.1"}}