{"_id":"@putout/plugin-apply-at","_rev":"5-c9be01943b71288046e389c63c5c2cce","name":"@putout/plugin-apply-at","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@putout/plugin-apply-at","version":"1.0.0","keywords":["putout","putout-plugin","plugin","at"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-apply-at@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-at#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"141c20038931c6402179cc918dbce876c106dbc3","tarball":"https://registry.npmjs.org/@putout/plugin-apply-at/-/plugin-apply-at-1.0.0.tgz","fileCount":4,"integrity":"sha512-J9yXuSNdp5yf0jT+sc0N+1WlOha+W3nvH01/1f0lQsIA/DzdaK83B06KC9Bc+5echMJFIG9sQWkv3/p7n5ldQw==","signatures":[{"sig":"MEUCIBLG/lTh8y6ajoLilh0eevfgL6qHk48gPc3yjzWNLf19AiEAgDQf9JvuqPdmLBISIwEtUHKkE42EX65oBMYOfCvFzps=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4083,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCeBwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpjA//aYTFetu8vYALppY07mVyVYAGkV2BJMEhMCjiYk+A5mHwXmTb\r\nIYLJrA/zLlh3F+lejvXzTdfHPgLcxcvbAQXDguvsWfWHUP/R2fpWXLaKXEtl\r\nOV+0hx+69RuXgi2PXsmORV89pxStFbzsdmJxR5ICwKWvGUoJmKRTW7C6O2AB\r\nCO2XAf6YK7cJtGiL2PM5In0OYUPbWMkKQ6irDgml+s9nmSydmJK7+G7o4aWj\r\n3n7ITSIRQkIArT55f1cbsLxDpSXdMKLn9w57tiqIDRu0vB6yfYdJZQk54JXk\r\nOrnTsrd/xAPrpTYAfi9Irsoxumt2+VrqNME2fCJMP68FTxWjLE/An3dUi5Un\r\nVrAWFK5SBHHhWGwXOP0p+0DhqVFGIzMpaLW58COlcLVCyPIQgjfCgzvnA/dH\r\n9D+bd5XYT33TrxfXE17QHkeJ/4sHGxCVw+vlTpY1EMfw0iqsIyzj0US6Qpd4\r\niahDsbtJIrseHSWe1JeKoS98c4oprDTS4xjGjSrZTey/giDg/txbjxramOjf\r\nJBFVZU8aZFu7LFyOg4sSb98Vw9EXAbnBSFZ+x92v+0Dmi0SJFxklDI9wJVgk\r\nGdlE56BfGS4zzOBBeVCCezkEYAaUDAUPEwMD0+2XdjXj5FmoQjPHy9KLcuJ0\r\n16PZoCLUVy6CKQ0tDO5vhz0WX3H/tE6o+Rk=\r\n=nJ4w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/apply-at.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"f59451155cb4c61f48b2dc6a380a73a0211ecef1","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"9.1.3","description":"🐊Putout plugin adds ability apply at()","directories":{},"_nodeVersion":"18.14.2","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","lerna":"^6.0.1","eslint":"^8.0.1","madrun":"^9.0.0","nodemon":"^2.0.1","@putout/test":"^5.0.0","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0"},"peerDependencies":{"putout":">=29"},"_npmOperationalInternal":{"tmp":"tmp/plugin-apply-at_1.0.0_1678368880350_0.8044340358208959","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@putout/plugin-apply-at","version":"1.0.1","keywords":["putout","putout-plugin","plugin","at"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-apply-at@1.0.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-at#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"3094aefb4833ea1b0e22ab4accb4186c7cebeea8","tarball":"https://registry.npmjs.org/@putout/plugin-apply-at/-/plugin-apply-at-1.0.1.tgz","fileCount":4,"integrity":"sha512-JzfWaIAWJAR6XRub6xyAleVXJ++IstGc5uDJgEZbg+aUquUxd6ns4TNfu2wDSjk9HZ3VKv2GgwSvhOpDPGLxpQ==","signatures":[{"sig":"MEYCIQDQ65IpskdckQelzony3YHuGYQLwL9PxAXRZDYhtC+KqgIhAOFw+LxKbRrP6TdS46iM+98CrEg4Tf/sRfQblAQClVvB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCeMZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonWg//ZEW0F3Bzvd05yYOlzRfE/ppOg1KExJsr2CtQkmr1vKr/wcer\r\nsdeyDXDFxBpXkJJF59E6E4j0SH+c/aBvUWkOtxdDReYh2CWQkxAPbGBxTuee\r\njH/JQ4KtE6r/v87EaV7HXutJ2zaiksDFGGf8/290Ur5Lgyxpo8NCv99c+sa+\r\nENfAYz5DKV9zpxNkxbE19ci5nfVOsAAhnldLkci6QVXA05wn8Zlm8ng+bGgc\r\np8IbGthBn4Z6Rn8bR/wdyonSXwmX1XO162xQbKUw9hVAmZFI7HIDRis3hRgn\r\nV7wbNMN5LJaIrAyNtau246QRVqHrshzOf5DZKoaKWrekhg12TaLFuiZQb46m\r\nmvRdUuwu+fIVim03Okv9r1IuBTnRyGnVqlzNAA43+P4cFnFTXV5ZZ3kBwInk\r\nDZgODnsDvr9sy5nt8ZIHsDxVG/t0vLjAlG+lkEPNT0Vt7z+iGi/T9JlPTGwt\r\n4nnKYPlQi2H2bhTLewIzlgKmsUtFzhfdB7D76cd9FqFFlrDzqeGvl3xjaP1R\r\nbJbPbvAkIb2cAu611IN1aGgyB1QDdQUe63uP0Iw6hj1qe8uUP8PlbUpHPkCS\r\nSVW8rfIontihtXWLKWHv9Ta/6uIoxlYP/7vxp6PUua1PkZD0uEYhqEkdEF0C\r\nIYE6y05SY6Uko3clcbXV28h3epZ652UdwB4=\r\n=W9aA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/apply-at.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"f59451155cb4c61f48b2dc6a380a73a0211ecef1","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"9.1.3","description":"🐊Putout plugin adds ability apply at()","directories":{},"_nodeVersion":"18.14.2","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","lerna":"^6.0.1","eslint":"^8.0.1","madrun":"^9.0.0","nodemon":"^2.0.1","@putout/test":"^5.0.0","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0"},"peerDependencies":{"putout":">=29"},"_npmOperationalInternal":{"tmp":"tmp/plugin-apply-at_1.0.1_1678369560858_0.5676872763973855","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@putout/plugin-apply-at","version":"1.0.2","keywords":["putout","putout-plugin","plugin","at"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-apply-at@1.0.2","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-at#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"885784faae7a5474b5e09f090f3813c1cf8baeff","tarball":"https://registry.npmjs.org/@putout/plugin-apply-at/-/plugin-apply-at-1.0.2.tgz","fileCount":4,"integrity":"sha512-sgJq9AY2nX0XUC+F5zb/q4DjQMbP2GfEFDABgdWDHHeGDSho6ttuRZrAQH7JUWV/cLVEovhO4MgHFK/S+u1DNw==","signatures":[{"sig":"MEUCIQDa1jMlHxhVcx3ggFVZ0Jxccq8aoeGvo3Gyjs8J2p1qOAIgJcnzl9vrnfFOMXWqDUDoXJpK3bQ4V1rogdw8jPrV3a4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4110,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCeM5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEBw/9Hn+z7B8g3mDZo202mqrikAIKsqq296NS15tMu0dhcdWbSewy\r\nZ8igs54G9lwy6JbNbluxGGCZIDvuzWZmrbEdtwgr0JBKsa49PNmK3vmK+qK8\r\nuS6/yZcNE/Eg+URSa9chCozkIGbF9D5nTDoosrzl+j6YxXmFV2weVDIPOb/y\r\nYFt2w1RkefM5Gb0cDZKNokoXgfD07ICyonwRyyT8crB3ssZ/BXbpZ8q631hz\r\nyDxvWMHWDiwGGGZBM3vhQ7UN1sO/BffnZTMOSZyCyjKaUQAdHNGhgl2bWbj+\r\nKEGn6IDv6+DDzQiQTpzSshcOlqBh+4rPXmnSIQoz+xxZB/WiwiGqdtZmcFlG\r\nhKeoqojC7fbQXWGvXLIriilePYHMB0Cm6L4+GWNrKXZ6ckeu2fzDNFtXpcZ6\r\nR1mS0e/gKv1iHHqJJqt8VQI36f+u/qZr27/kCXseA5PTRdF5teFzhkh3Pn1f\r\nBf897qihAfOAeX4O6hA2nL/zDIIxWV2PpvOUl0UPqlq+4DUoq33O5ksj4018\r\nMpFIxI5GXrZZiNanegzBUrTSVSGigUj7FdRKNMDVamS/tks+aonU0OeGjLwk\r\nd3032XoH0OW+TTvHad/5KKQJSzbN6ajE4lHXk/6w6kUyprEfaAoJq5ZXxvrW\r\ng10ff1aoHzrUFisjRtJgMQxIAKwdAn9Ypas=\r\n=PvVC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/apply-at.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"f59451155cb4c61f48b2dc6a380a73a0211ecef1","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"9.1.3","description":"🐊Putout plugin adds ability apply at()","directories":{},"_nodeVersion":"18.14.2","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","lerna":"^6.0.1","eslint":"^8.0.1","madrun":"^9.0.0","nodemon":"^2.0.1","@putout/test":"^5.0.0","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0"},"peerDependencies":{"putout":">=29"},"_npmOperationalInternal":{"tmp":"tmp/plugin-apply-at_1.0.2_1678369593237_0.9937851755333424","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/plugin-apply-at","version":"2.0.0","keywords":["putout","putout-plugin","plugin","at"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-apply-at@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-at#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"1166f44ce71cd045a1532bf455afa84f3457c57d","tarball":"https://registry.npmjs.org/@putout/plugin-apply-at/-/plugin-apply-at-2.0.0.tgz","fileCount":4,"integrity":"sha512-wIQz42w+d+CugaLdNbksGAdL1CxfpHFb7Yr2bn2bqi+jI6Dr6AlrbvpN9irE1dcAY+5hbVmSfe8euix0trkR3w==","signatures":[{"sig":"MEUCIBGn+rWnhcNvq2TiE7b/6zYkBMWkfwFW0L2MxLdAGeYpAiEAjhMjibIB+ItywlXYeYwkdOEY375PYtUfmgFbCF4eky4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4310},"main":"lib/apply-at.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"30133b295b5753bb58b831147ebb1eabab1620a8","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"9.6.6","description":"🐊Putout plugin adds ability apply at()","directories":{},"_nodeVersion":"20.6.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","lerna":"^6.0.1","eslint":"^8.0.1","madrun":"^9.0.0","nodemon":"^3.0.1","@putout/test":"^7.0.0","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^19.0.0"},"peerDependencies":{"putout":">=32"},"_npmOperationalInternal":{"tmp":"tmp/plugin-apply-at_2.0.0_1694684325647_0.7532713988363615","host":"s3://npm-registry-packages"}},"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":{"integrity":"sha512-Om3fdaGqF9cR+KVDCgqi2t2bV4nE9HLlAETV8ROuKphFImJ1ki97dg20BmnMADhSHPsH13psBEGbq8MegbK2VQ==","shasum":"3a8769841a354039df87ac19f0afded6fd1e0ef2","tarball":"https://registry.npmjs.org/@putout/plugin-apply-at/-/plugin-apply-at-3.0.0.tgz","fileCount":4,"unpackedSize":4322,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDJr7Cx0Sjx1lD80eoWqmY7gGTgUGSMChDTrczcxKO8nAIhAJ0JTAB9VEXm5OpWN/Hz1XtwLYr/sJ7XB9nRhKanJO8L"}]},"_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}},"time":{"created":"2023-03-09T13:34:39.744Z","modified":"2026-01-28T12:14:57.418Z","1.0.0":"2023-03-09T13:34:40.487Z","1.0.1":"2023-03-09T13:46:00.998Z","1.0.2":"2023-03-09T13:46:33.390Z","2.0.0":"2023-09-14T09:38:45.874Z","3.0.0":"2026-01-28T12:14:57.282Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-at#readme","keywords":["putout","putout-plugin","plugin","at"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability apply at()","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"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","readmeFilename":"README.md"}