{"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":"http://registry-npm.ywwl.com/@putout/plugin-apply-to-sorted/download/@putout/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,"size":1868,"noattachment":false,"key":"/@putout/plugin-apply-to-sorted/-/@putout/plugin-apply-to-sorted-1.0.0.tgz"},"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"},"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","publish_time":1791651867070,"_cnpm_publish_time":1791651867070,"dist-tags":{"latest":"1.0.1"}}