{"name":"@putout/plugin-apply-at","version":"3.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability apply at()","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-at#readme","main":"lib/apply-at.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","at"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^30.0.0","madrun":"^12.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-apply-at@3.0.0","gitHead":"2fd0994240d17431ac02dee79815358f5a70ff26","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.4.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-Om3fdaGqF9cR+KVDCgqi2t2bV4nE9HLlAETV8ROuKphFImJ1ki97dg20BmnMADhSHPsH13psBEGbq8MegbK2VQ==","shasum":"3a8769841a354039df87ac19f0afded6fd1e0ef2","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-at/download/@putout/plugin-apply-at-3.0.0.tgz","fileCount":4,"unpackedSize":4322,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDJr7Cx0Sjx1lD80eoWqmY7gGTgUGSMChDTrczcxKO8nAIhAJ0JTAB9VEXm5OpWN/Hz1XtwLYr/sJ7XB9nRhKanJO8L"}],"size":2145,"noattachment":false,"key":"/@putout/plugin-apply-at/-/@putout/plugin-apply-at-3.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-apply-at_3.0.0_1769602497152_0.9862556354595269"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-apply-at [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-at.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-at \"npm\"\n\n> The `at()` method takes an integer value and returns the item at that index, allowing for positive and negative integers. Negative integers count back from the last item in the array.\n>\n> (c) [Array.prototype.at()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at)\n\n> The `at()` method takes an integer value and returns a new `String` consisting of the single UTF-16 code unit located at the specified offset. This method allows for positive and negative integers. Negative integers count back from the last string character.>\n>\n> (c) [String.prototype.at()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/at)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to apply [`array.at()`](https://github.com/tc39/proposal-relative-indexing-method).\n\n## Install\n\n```\nnpm i @putout/plugin-apply-at\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"apply-at\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst latest = (a) => a[a.length - 1];\n```\n\n## ✅ Example of correct code\n\n```js\nconst latest = (a) => a.at(-1);\n```\n\n## License\n\nMIT\n","publish_time":1769602497282,"_cnpm_publish_time":1769602497282,"dist-tags":{"latest":"3.0.0"}}