{"_id":"@putout/plugin-apply-to-sorted","_rev":"3-a86d40ad829f07074a4ce9d5b4260fae","name":"@putout/plugin-apply-to-sorted","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.0-stage":{"name":"@putout/plugin-apply-to-sorted","version":"0.0.0-stage","_id":"@putout/plugin-apply-to-sorted@0.0.0-stage","stub":true,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"dist":{"shasum":"e3b16e6ba1c6f01a827931bc21043c6ec382c139","tarball":"https://registry.npmjs.org/@putout/plugin-apply-to-sorted/-/plugin-apply-to-sorted-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-KX4wAArYeV+UDKo6dZKXq0BYYbHmuLxBMbVvkGsp5Cvt2AvDEX2TExAco81FEsVUlpxEr+zTQgixX+UG7mrbcA==","signatures":[{"sig":"MEQCIHM5soVxOmSQNtL0uUSKeM+ltvcDbpAlUSAhhj9jA4v/AiB4shLThu2bB70IyUZmi/ycJcYf/bEOmf9TDbEz+MbaEg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":352},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"1.0.0":{"name":"@putout/plugin-apply-to-sorted","version":"1.0.0","keywords":["putout","appliers","apply","putout-plugin","putout-plugin-apply","plugin","to-sorted"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-apply-to-sorted@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-to-sorted#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"cd059f9a6deca933bec810eb06736a5795ad700c","tarball":"https://registry.npmjs.org/@putout/plugin-apply-to-sorted/-/plugin-apply-to-sorted-1.0.0.tgz","fileCount":4,"integrity":"sha512-ICocXXBfrJ/ry4+Q2lnm2WhgpBQUwlVmhUZrbBQYFpKJL19vdY3dD4rhUxnaywUQtkUqu8dfMZLiSG16tlo+OA==","signatures":[{"sig":"MEYCIQDtJy+tveUudtnc2LoFFMrOB4LfoAmWQm8zbVOmapOf4wIhAL49yvYeTvu5thw7cfF0u3YxHJuwkPdKCFpdOWdflPvE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCh2eKWfOG69hzWg38f6Y8FaXHX5kk/tb5l9tlIE6HXWgIhAOlJTVoM2O2LkQL7gkivgIKNi+WFrmSIE9sfT0busHNr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3526},"main":"lib/apply-to-sorted.js","type":"module","engines":{"node":">=22"},"gitHead":"116ea0fb8c338906af04c77a15d10bb4f2e52db8","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":"12.0.2","description":"🐊Putout plugin adds ability to apply 'toSorted()'","directories":{},"_nodeVersion":"26.11.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","nodemon":"^3.0.1","redlint":"^6.0.0","superc8":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/plugin-apply-to-sorted_1.0.0_1791651866970_0.07189476461078725","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"_id":"@putout/plugin-apply-to-sorted@1.0.1","tag":false,"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"dist":{"shasum":"3bd73c9eb0bd3670cbe8f69e364ee207d31f3512","tarball":"https://registry.npmjs.org/@putout/plugin-apply-to-sorted/-/plugin-apply-to-sorted-1.0.1.tgz","fileCount":4,"integrity":"sha512-lKClVCJLnUPS9+dRhmUPkjMWcZm019cJJxFN0pgxUH6j0yASz/XYUJFIHFMOg46ikpCgoazwtEH9DFfIaN16jw==","signatures":[{"sig":"MEUCIQC3uctt9ApwAzFbcJwy0qNsDGerAr+Ag3cR/g0Cx0WHOwIgIGl6gSErIt89apH2U8UzM/OpqUxKlAzIOMPrb22tFHU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHYZ9Ndhpl6Z5SgT23SclsDYmkBbYBiAIYdsXaXBffcAAiEAgSgV+5B3rQimS68n+HYY5+aT+JSv05Bfuz6E3X4yDfI="}],"unpackedSize":3672},"main":"lib/apply-to-sorted.js","name":"@putout/plugin-apply-to-sorted","type":"module","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"engines":{"node":">=22"},"gitHead":"4af3e04a150814c0ea6e47bf7a7d578c8b2d96e9","license":"MIT","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"},"version":"1.0.1","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-to-sorted#readme","keywords":["putout","appliers","apply","putout-plugin","putout-plugin-apply","plugin","to-sorted"],"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"12.0.2","description":"🐊Putout plugin adds ability to apply 'toSorted()'","directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_nodeVersion":"26.11.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","nodemon":"^3.0.1","redlint":"^6.0.0","superc8":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-apply-to-sorted_1.0.1_1791652051602_0.943904169763377"}}},"time":{"created":"2026-10-10T17:03:30.829Z","modified":"2026-10-10T17:07:31.816Z","0.0.0-stage":"2026-10-10T17:03:30.829Z","1.0.0":"2026-10-10T17:04:27.070Z","1.0.1":"2026-10-10T17:07:31.675Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-to-sorted#readme","keywords":["putout","appliers","apply","putout-plugin","putout-plugin-apply","plugin","to-sorted"],"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"description":"🐊Putout plugin adds ability to apply 'toSorted()'","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/plugin-apply-to-sorted [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-to-sorted.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-to-sorted \"npm\"\n\n> The `toSorted()` method of `Array` instances is the copying version of the `sort()` method. It returns a new array with the elements sorted in ascending order.\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSorted)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to apply `toSorted`.\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/d830f5f671b78d6040c6a24862a8777f/bdb7291787f18dc15c86e7bcd685774905640859).\n\n## Install\n\n```\nnpm i @putout/plugin-apply-to-sorted\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"apply-to-sorted\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\n[...a].sort((a, b) => a - b);\n```\n\n## ✅ Example of correct code\n\n```js\na.toSorted((a, b) => a - b);\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}