{"name":"@putout/plugin-convert-arguments-to-rest","version":"3.1.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert arguments to rest","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-arguments-to-rest#readme","main":"lib/convert-arguments-to-rest.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"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","plugin","convert","arguments","rest"],"devDependencies":{"@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","madrun":"^10.0.0"},"peerDependencies":{"putout":">=36"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-convert-arguments-to-rest@3.1.0","gitHead":"b10ce31463d1844139302aa3311492a36225c8b2","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.9.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-DkjkCIc2ecbqvc8yhKWLDx2bGlNq5RMRlTfYd++nXi2iRnf5SyqcBfmr3/u/7BGoaoTN4QpDwPx9hyZXnK/PLw==","shasum":"e4f1507331bfda7e510a67a4bc8207f5e0d1153a","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-arguments-to-rest/download/@putout/plugin-convert-arguments-to-rest-3.1.0.tgz","fileCount":4,"unpackedSize":4851,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAjEPDM5cruZyiZYbtvD3nGJ1IHozlNDGOZRaff4HCfyAiAP9VRD1bsqGqBUPQd5S4LjtKTe0B7+eXbZ2XOyrn1MaQ=="}],"size":2219,"noattachment":false,"key":"/@putout/plugin-convert-arguments-to-rest/-/@putout/plugin-convert-arguments-to-rest-3.1.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-arguments-to-rest_3.1.0_1727445843223_0.9609397563066868"},"_hasShrinkwrap":false,"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":1727445843402,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1727445843402,"dist-tags":{"latest":"4.0.1"}}