{"_id":"@putout/plugin-apply-at","_rev":"4159306","name":"@putout/plugin-apply-at","description":"🐊Putout plugin adds ability apply at()","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:34:45.000Z","created":"2023-03-09T13:34:40.487Z","3.0.0":"2026-01-28T12:14:57.282Z","2.0.0":"2023-09-14T09:38:45.874Z","1.0.2":"2023-03-09T13:46:33.390Z","1.0.1":"2023-03-09T13:46:00.998Z","1.0.0":"2023-03-09T13:34:40.487Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"versions":{"3.0.0":{"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":{"shasum":"3a8769841a354039df87ac19f0afded6fd1e0ef2","size":2145,"noattachment":false,"key":"/@putout/plugin-apply-at/-/@putout/plugin-apply-at-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-apply-at/download/@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,"_cnpmcore_publish_time":"2026-01-28T12:14:57.282Z","publish_time":1769602497282,"_source_registry_name":"default","_cnpm_publish_time":1769602497282},"2.0.0":{"name":"@putout/plugin-apply-at","version":"2.0.0","type":"commonjs","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://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/test":"^7.0.0","c8":"^8.0.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^19.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=32"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"30133b295b5753bb58b831147ebb1eabab1620a8","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-at@2.0.0","_nodeVersion":"20.6.1","_npmVersion":"9.6.6","dist":{"shasum":"1166f44ce71cd045a1532bf455afa84f3457c57d","size":2151,"noattachment":false,"key":"/@putout/plugin-apply-at/-/@putout/plugin-apply-at-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-apply-at/download/@putout/plugin-apply-at-2.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","tmp":"tmp/plugin-apply-at_2.0.0_1694684325647_0.7532713988363615"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-14T09:38:45.874Z","publish_time":1694684325874,"_source_registry_name":"default","_cnpm_publish_time":1694684325874},"1.0.2":{"name":"@putout/plugin-apply-at","version":"1.0.2","type":"commonjs","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://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/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"f59451155cb4c61f48b2dc6a380a73a0211ecef1","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-at@1.0.2","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"shasum":"885784faae7a5474b5e09f090f3813c1cf8baeff","size":2097,"noattachment":false,"key":"/@putout/plugin-apply-at/-/@putout/plugin-apply-at-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-apply-at/download/@putout/plugin-apply-at-1.0.2.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-apply-at_1.0.2_1678369593237_0.9937851755333424"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-09T13:46:33.390Z","publish_time":1678369593390,"_cnpm_publish_time":1678369593390},"1.0.1":{"name":"@putout/plugin-apply-at","version":"1.0.1","type":"commonjs","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://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/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"f59451155cb4c61f48b2dc6a380a73a0211ecef1","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-at@1.0.1","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"shasum":"3094aefb4833ea1b0e22ab4accb4186c7cebeea8","size":2122,"noattachment":false,"key":"/@putout/plugin-apply-at/-/@putout/plugin-apply-at-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-apply-at/download/@putout/plugin-apply-at-1.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-apply-at_1.0.1_1678369560858_0.5676872763973855"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-09T13:46:00.998Z","publish_time":1678369560998,"_cnpm_publish_time":1678369560998},"1.0.0":{"name":"@putout/plugin-apply-at","version":"1.0.0","type":"commonjs","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://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/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"f59451155cb4c61f48b2dc6a380a73a0211ecef1","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-at@1.0.0","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"shasum":"141c20038931c6402179cc918dbce876c106dbc3","size":2163,"noattachment":false,"key":"/@putout/plugin-apply-at/-/@putout/plugin-apply-at-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-apply-at/download/@putout/plugin-apply-at-1.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","tmp":"tmp/plugin-apply-at_1.0.0_1678368880350_0.8044340358208959"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-09T13:34:40.487Z","publish_time":1678368880487,"_cnpm_publish_time":1678368880487}},"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","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-at#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}