{"name":"@putout/plugin-convert-array-copy-to-slice","version":"1.1.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":"^3.0.0","coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^6.0.0","madrun":"^8.0.1","nyc":"^15.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.1.0","_nodeVersion":"15.3.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-PVCdhG3p+xbwH/ZHpynxr1ziBn9+nMtWuBRtgx1eEkGNWYQXrKLF+FaY5VdLJLMg8oK+WUvs25zYyInScjG14w==","shasum":"537c0f576bd60ed0a0bd47af5281da5db2e2ad30","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-array-copy-to-slice/download/@putout/plugin-convert-array-copy-to-slice-1.1.0.tgz","fileCount":4,"unpackedSize":3777,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzgqQCRA9TVsSAnZWagAA8c4P/0XNlH8qpeUbLSdDy5sg\nyyyXaX6//iPnJbNOA4z2CdigoOtFnWItrQQ45JwI9NNNOkRWOSrQU++rL64y\nbDel7ulcuVEdIBAcnO4wDNvH2vncMy5dtjpWVrnHI3AAnF/LY/+N7n5W6noB\nMqZ0sYTvohHMIRj8pWMvLZtpFI4oqDsskKotMil7h1MNIjuYbakWHAJsj7g/\nz1CBC9yiZRTqqkgUW3fhu/YmZE/V/tB8L/nrq9y4qdY06d/YJ6emKD4wccJ0\nMj90Q+drCla/DvsQfsALm4D3fy+Y/eFP75W+tShAOv0J+SV9axR9Iozj3CxA\nO7+qjx2AnYxavJ8P26huUaiy6+48n5XnM5diTAVWiJHGJvxGzNfclNyRXZ4e\nRCTVkLsAyQWlV1B41FtkxIUsJvSyQba1TenlNL0tlDkTA3VxWDLztleSUMpw\nOlrpJWcLDvefHzpSKNzEpHgXWP5kapPGOb5PrsGoS4kxbzRi2IcFIMCwxx3D\nSc31UizmbEKVBO1qneHwz5OqerLLpBB36IYTj9fvLCg+xpfEDKAQiGQksLid\nOQ9sqMUnDruGoHWlEeB8f6zFFzrrZnnuLXd+0rPq1A5viARgzhu7Bqm+siMh\nA7bUjZdFxX3WLKE/2uDBNEUN3lYvc7rSSMtVYyW2WvRtN9MCWHxTVXA/IEJJ\nVC8o\r\n=Py42\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCF5cz5DCGAwGHDg2qFiV6lNBAIy9pnZyerDYr2JCLVhQIgRUcgbcjXTl17f13uInVaoJawqhkD1il5uZRac6bjGes="}],"size":1861,"noattachment":false,"key":"/@putout/plugin-convert-array-copy-to-slice/-/@putout/plugin-convert-array-copy-to-slice-1.1.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.1.0_1607338639685_0.8857140182085264"},"_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":1607338639799,"_cnpm_publish_time":1607338639799,"dist-tags":{"latest":"5.0.1"}}