{"_id":"@putout/plugin-apply-to-sorted@1.0.1","tag":false,"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"dist":{"shasum":"3bd73c9eb0bd3670cbe8f69e364ee207d31f3512","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-to-sorted/download/@putout/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,"size":1976,"noattachment":false,"key":"/@putout/plugin-apply-to-sorted/-/@putout/plugin-apply-to-sorted-1.0.1.tgz"},"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"},"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":1791652051675,"_cnpm_publish_time":1791652051675,"dist-tags":{"latest":"1.0.1"}}