{"name":"@putout/plugin-convert-arguments-to-rest","version":"3.0.0","keywords":["putout","putout-plugin","plugin","convert","arguments","rest"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-convert-arguments-to-rest@3.0.0","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-arguments-to-rest#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"dfb88ce1ab05f4556cbcb0b972fc4bc6158c764a","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-arguments-to-rest/download/@putout/plugin-convert-arguments-to-rest-3.0.0.tgz","fileCount":4,"integrity":"sha512-OVYf+IvVL5cO9P6qOM2GbXekxbBUxTwckStj0PWMqo1XHxLYAGRHcvJB75PSaxsGQhqa4lO41H7xRbkjHPzRWA==","signatures":[{"sig":"MEUCIQDEOuUjx6Stryg7YU8UDe+qJjEGxQ+6v8ReNsxjftoFXQIgL80Oz4nyBCTHEVTAAjl+sxeBUZPCzORSFJAk1fIpI+k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4737,"size":2197,"noattachment":false,"key":"/@putout/plugin-convert-arguments-to-rest/-/@putout/plugin-convert-arguments-to-rest-3.0.0.tgz"},"main":"lib/convert-arguments-to-rest.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"22b16860a93ab76bfce379f975f2360a38ae2be0","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.8.2","description":"🐊Putout plugin adds ability to convert arguments to rest","directories":{},"_nodeVersion":"22.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^10.0.0","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0"},"peerDependencies":{"putout":">=36"},"_npmOperationalInternal":{"tmp":"tmp/plugin-convert-arguments-to-rest_3.0.0_1727433087261_0.9731228148018805","host":"s3://npm-registry-packages"},"readme":"# @putout/plugin-convert-arguments-to-rest [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-arguments-to-rest.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-arguments-to-rest \"npm\"\n\n> The rest parameter syntax allows a function to accept an indefinite number of arguments as an `array`, providing a way to represent variadic functions in JavaScript.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `arguments` to `rest`.\n\n## Install\n\n```\nnpm i @putout/plugin-convert-arguments-to-rest -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-arguments-to-rest\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nfunction hello() {\n    console.log(arguments);\n}\n```\n\n## ✅ Example of correct code\n\n```js\nfunction hello(...args) {\n    console.log(args);\n}\n```\n\n## License\n\nMIT\n","publish_time":1727433087633,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1727433087633,"dist-tags":{"latest":"4.0.1"}}