{"name":"@putout/plugin-convert-array-copy-to-slice","version":"3.0.0","type":"commonjs","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#readme","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":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^17.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"f9f6e8e8b5869a69bc7a757a374ea3f3c1eb5dfc","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-array-copy-to-slice@3.0.0","_nodeVersion":"20.2.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-rmUhado8IydOc+amBzBLiQ7j39TadIrDwyaEZmAcLG1LrQNQ8LGssvnKqE0EqRBy3t/D3y3r4PKKR2sklqz7+A==","shasum":"2606e8d482752f327d52115d7a5bba8e4c925b12","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-array-copy-to-slice/download/@putout/plugin-convert-array-copy-to-slice-3.0.0.tgz","fileCount":4,"unpackedSize":4491,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1C8QwunlUcRWweACPi+G+bUwWWW/chXlIv2W40rQAQAIhAOUfkyO5UWToOt9woHiWB1Q/vxCuG/LULFGkkdgSCjfx"}],"size":2163,"noattachment":false,"key":"/@putout/plugin-convert-array-copy-to-slice/-/@putout/plugin-convert-array-copy-to-slice-3.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_3.0.0_1685992827281_0.08160631086916514"},"_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":1685992827475,"_cnpm_publish_time":1685992827475,"dist-tags":{"latest":"5.0.1"}}