{"name":"@putout/plugin-convert-array-copy-to-slice","version":"1.2.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.2.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-e8F5syhMNMZFI28z24BzUxfnsrGubD3HnBQVgvR5vId0oB+KuALF1ZdMAU8710HN1+xHfBCrcJTWRiHqDoy8Lg==","shasum":"82805fb8d84be8b9c629a2cf9c7c50782b7c8f6f","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-array-copy-to-slice/download/@putout/plugin-convert-array-copy-to-slice-1.2.0.tgz","fileCount":4,"unpackedSize":4143,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYgtuCRA9TVsSAnZWagAAvwcQAIDCX1TVUmBLYJnfmfXd\ncOF4HFQPqdS2/a4Qu3tQwhs03HchE3zk3Ei0B4dFGb6uSbaKKDcVJyby/brz\nnaVu/JC8j081TVldEEh9kXRACNA4VoX41zCrqMhPmyNMEh7ZYgAeBLeJ7fet\ntrz/shSMS8LucjFu41WJuKVBQsNMSvDJAq2Gupy/P1bcahO7i8xd9eMSvdcx\nRXqmkvs17hpqsGOmCvoSNMuMI0xLToHxLTZyzM+e/3RTjLnKrPAJiTdUu0Ww\nxNanxjAt54YML33k+EB5uSAJEyFJA+pRAxeAnurI46Q31jxXQrPMPrSISoJc\nLPgkVh2nAdRw3F/7GGkM1O7K/ujflMXcXibOSZz52lVmSfhcvxbqsmVlYJAv\nZc52swCaduKzmyYB01m1zTRIvXTI9VsAn49dHCP9E8qSmt8yQJMWtXUU5WVi\nTsE6GYgzZ2EbWwWxUD50kyRFM+ANjoSRD3n2S7VA8Y7phmI873zIdANG9hsm\n24O8JSxLLIrL1O+ZIl06nnHEv1h/gp1iKj4x6sgIrGjZ0hoN5xSymTZRhXe6\nFyalvCsp57/1c21tOCDVuTatPKhkmp/OHh43/b6u3gaAMbM2waCnegX6FvQz\n2dmwmbk5wAGHm0WsYcO24W1f0lOG7CPZrRWXwqkcEy7bpqscZdtuz/HH7Gi1\nzaqC\r\n=idtv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGsDn3aIP6lx4AqVtQ5lt9KeQBrenp7SsRPIyPQBXFzwIhAMT8MO5lrp1HSDLHT2WC+t4l+hNm13uumHLvUjnX4DUp"}],"size":2013,"noattachment":false,"key":"/@putout/plugin-convert-array-copy-to-slice/-/@putout/plugin-convert-array-copy-to-slice-1.2.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.2.0_1617038189520_0.766425221461863"},"_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":1617038189627,"_cnpm_publish_time":1617038189627,"dist-tags":{"latest":"5.0.1"}}