{"name":"@putout/plugin-convert-array-copy-to-slice","version":"1.0.1","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.1","_nodeVersion":"14.5.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Irsze3D5KMhKrfzpZMxUZ7WRp2ZmbyGngkZD/ofUBboMPM/+S6h7QvR6y0rYErF2sOJxt+ByANoG7pmMLaSc9Q==","shasum":"03984139434b96da1cc9feb6ac17360a29fd6ea8","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-array-copy-to-slice/download/@putout/plugin-convert-array-copy-to-slice-1.0.1.tgz","fileCount":4,"unpackedSize":3690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFDPOCRA9TVsSAnZWagAA5G8P/0NEh7W+V2V/eTaqqQ/x\nEk3Ug+pOtEY26SyyGaitBdSiHteLHSaJ/ALMU4dsqz1raHvPr5E+en0t9Zre\nBlcOkhCIOKYfT2XIlncPEyogfC6WYZ0MChKuaBpU5mP+RNHOZ0PElwX9Aav4\nBnpopPh+iQ2EW9WqWii+cNJll1tA+ObCMFUZflkg8v2N7ULCm24ZWeVK2yhl\nxQtCNm0WZnRP3sxmDV2n8XiNRTfT4XCfGfOR7CpH4T907qzKO2PnxlNDHEqz\nvGFMwt6JKxxhsEWT2L7PNQW9U+XljXJa1mkM/3bvS9Zhdyj4qu3D2vo68DYX\nk9KSNZmaHaFr+OWRL2IEWuaqw9EVNwaAHmsJBFBNY9gMIRLy78kw6PntI8am\nvNwDuipkTlsk4NyQ6yGp/dRPEUUNALV66rH1pYEQVMokKfaSgtVRFDRUdwKh\nqmw51cQD4TjHZMwfTFIfM2+3bv/TXKZ2Oa7dwVoz6uYKjYslqk0VqVKGEKLa\n6vp72nUZh3cNWrOr3jtD10RUJWM+muJ340Jj41f4HzH9At7FbupmNfBQgpew\n0CMKHNiCVKVXv55O1uoddoBdrcYwbz0lF2f4AKVwJu4yZP99pNsbLdGLiu+F\nEN6iK0fd85fYuwJuTDsVjF7tT+ZM+HOLF3qVCl4G/Jx6ideoyeZ7XIy1CqaZ\ntyfZ\r\n=q8Q4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4afsAKlV98xArBaP24uW3zWwgonGRw4NL602qURqhAAiA+Yoo0iTxHfpVRCnsNc0KUt72oTdj1oiyyW84qZ0uotQ=="}],"size":1793,"noattachment":false,"key":"/@putout/plugin-convert-array-copy-to-slice/-/@putout/plugin-convert-array-copy-to-slice-1.0.1.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.1_1595159501905_0.9133870050371626"},"_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":1595159502006,"_cnpm_publish_time":1595159502006,"dist-tags":{"latest":"5.0.1"}}