{"name":"@putout/plugin-convert-array-copy-to-slice","version":"1.4.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.4.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-1W0aBRzlY0kH4cVkDZc8HrdSHRP/Ow3XdGkLmWTcGeeGPUsabvKLfeScTRUsEcO03fvqjwTmVb6P/nFYk6DCYg==","shasum":"c4abf60e93f60a951fd820f188068eddff909966","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-array-copy-to-slice/download/@putout/plugin-convert-array-copy-to-slice-1.4.0.tgz","fileCount":4,"unpackedSize":4237,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggAFzCRA9TVsSAnZWagAAjC8P/1ipVqAUkgSqSmvJLeKq\nDNngzOYudq0rAaSd3ZT80SWweD4OC4qE7x5rcMAiqDHGjBQSEOX8L+FgY2rR\nVqIRYuMlU93FT96jgQuRlXioQcW8vdOgstkuheSp0OWnezmj5EhyZiI5xNhl\nTyXXE0fb19zdUVLEPJqdm2G61AqtvTCtlRf8mLrpPIi3NGzqyz7tNV/J1erF\nwp4b3+mCPl+xC8lzJdvxfem/27OP0kUm9pRH8X/1BtTtmnPYyhNCdANYNAjX\nKN7Wv4BAqKOnoCOkaurI+vtDDTFjk3fL7qo32ceRBc0KHp3pvZTEZXn03a8l\nxu0MYo/hlsAl4FCjjzGVlrVLkaDmAh0QYE6jYYdE4Dj9sGHi7aWqHV/qKgf9\nNebucV7vpgQhtKx5w9mq473RZu3MG5W0mcIBJDxUb6zVnOCq6V6iJB9xtAn8\n0awWjEVNLFcjudJQhXcsIqH24yG9+ES06nhfyhj4zreJTk4vNa/6eWrlE/x9\n/Xu9nmoN/Sb1pK3Ye7nHGeNdYKBai0MStu2JZnl/LPl1hxNqIKePLg/Qiqgy\nxN+7Qom6FlnumhkrNlj46dIBjWvu0A8VTJwKgn0hf3IN3aXF/5FbVT7/+fvL\nPbAyZgCbqlwrwd6DfZfmdJS97i60O8QBRLUccTEBPkEjqSqeaWv59odhlrRT\nHRf8\r\n=qYjF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDelulth0nOvhTjMYVBqFbsHKXzLh88tDSobUWNM1wdEwIgH/wOL484D5UAzuA1iVA3N5N2YX2q5jsG6KoIrp+4K+g="}],"size":2005,"noattachment":false,"key":"/@putout/plugin-convert-array-copy-to-slice/-/@putout/plugin-convert-array-copy-to-slice-1.4.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.4.0_1619001714894_0.2958758325989588"},"_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":1619001715088,"_cnpm_publish_time":1619001715088,"dist-tags":{"latest":"5.0.1"}}