{"_id":"@putout/plugin-remove-useless-map","_rev":"6-3e809fe3a2175f186ab22662e9efd21c","name":"@putout/plugin-remove-useless-map","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.0":{"name":"@putout/plugin-remove-useless-map","version":"1.0.0","keywords":["putout","putout-plugin","plugin","map","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-map@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"http://github.com/coderaiser/putout","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"afbf69f53cda8ba097fda9dcaead76a883824558","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-map/-/plugin-remove-useless-map-1.0.0.tgz","fileCount":4,"integrity":"sha512-tUGcpTxc+pnnHSUpibgYzKR0gs1pFBpGo6DRi0DsrmWR1VRr3BPyralmH+IFemoeMiA4dFql7HuebEYVEfilMA==","signatures":[{"sig":"MEUCIQCqHyacmniKUZU+szafhm9lJsMlKXSZHgqaeHa+ztklIAIgPfXesUxS8SBfBettWOqcAcvbStF5InbwM57paE6blwA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+HIjCRA9TVsSAnZWagAApTIQAIBQrsXzZG87jTYk9aa7\nTxEGxCeLySU+/TVSOWAl7VG8vm5Grzj6YPQr3BLxXq5h24XvdfYoIxs+Iuws\nRiiwz7H9kFuhtH96ZY3ChXg7RNm7Zd+xUgZ6zlMut5UdkIyDp0AGTQvlrGEU\no2Xs++LASV+jMM2gPNkhTb0ffAt8fCeqgLpEQf5bpMGOCeom2ENtt0BnPc0u\nwdFczZPOZqZGccNsfaEsVrIw35opvK8MZr+nQTM5oosEHfwVbTxAYydSDCRp\nfBCpu8aKg9lelxRnthsHO6zbx684orv+2O7iGtao4lnC0/6lo7rkBBSXTS9N\nZBs23swHqRzxORZ0wNDPs4F0ojTbQlrF0yrF3L5zsi5Qpo6moQgHsC08B+kO\nzEzmAkRgfeQAQdnl85Bn2Cb3KFpA6774KQlzsoorhMtSwQn7Cp6ynwOtgMJU\nYDC3gNf8EIgSnyzbEl9VlIVjAIRDQI+2pjvg2+SawFZjy0PepPyKONY1kFlo\n/ci7922XWJS1P2vHjblf57z6doYKdtrK/2Sqin52wpzfLg3xf9d9ZjP5WMiB\nUEeDhcKTu85/TBhvuMKeSbhxuKatc8UuLGI2eAGkJZ0NVJfqcpUB17XLMl07\nI9HI/Oy9j9PbRiHnAavUh6PPy1CQkc5BRkSh3/clfq/k6tvcazmo4jEsfjUl\nRp7B\r\n=2TtK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/remove-useless-map.js","engines":{"node":">=14"},"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","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"7.19.1","description":"putout plugin adds ability to remove useless `.map`","directories":{},"_nodeVersion":"16.5.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","eslint":"^7.0.0","madrun":"^8.0.1","@putout/test":"^3.0.0","eslint-plugin-node":"^11.0.0"},"peerDependencies":{"putout":">=18"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-map_1.0.0_1626894883193_0.5613532165204684","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@putout/plugin-remove-useless-map","version":"1.1.0","keywords":["putout","putout-plugin","plugin","map","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-map@1.1.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"http://github.com/coderaiser/putout","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"db1ccc1dcff6a5e272e0777e1a65c212c59853c1","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-map/-/plugin-remove-useless-map-1.1.0.tgz","fileCount":4,"integrity":"sha512-/5VQNb1YkcTZ16FqFrSfoILgGqsMJ6zIaKP1LlhZa3Xt1svLoN2Y2NIve9mSn7NgxFWnR1eUZPaeXl+FT+ltog==","signatures":[{"sig":"MEQCIBkzgKZbRua2DeO8pqEf1hlKJ9ovHBpaJxOJnpSoW/OKAiBRflNEYMz1yf4aZJHRd+2lW9kEI6rXV9cw+OCSXsiltw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhG6jKCRA9TVsSAnZWagAA0vQQAJDB4QUaHTzAqPn0cQes\n/9Ikk153E7kJDRyCi6Dj/5f2+vu32QDkP95RCGrlfiy4i2z8mLIQEqlZ7fJy\nr6fAlfGlzA4JvYmQfNHG+zc1n5+zt7FQR/QbFPInT3iuuyhL5jdYis4g3K9S\nMCw/dBQfOgltbBx6pMyXRD9/GC+Oe3DpLy1qnog0HPm7WwPyw6eZ+RdadaNQ\n6d3hR67Jey+jKud9Css/f0Z4ObLpelvZQhE5yMR9Or7o7nEjPg5CZJZKyp4a\nWfAkcXf8/kPVsus7rAvOn2Pzo/o+2OBL8ZqB/y17iAJFKKEldH9QLhj95lcF\n8P+zeDNqoA4NumqpPov1JPRoyLN0RLne9kwFbDCZqDHUODprG/6UFprBQt/+\nVlJ/Cl6a/iIKIDjayNYJGrIYYPawm5+hpPT0N7FIJKlsVJ+gItbU+8bIo9P+\n+2eiQGrbeQe25V5fHuBjBri5JHAEckF38k+fY4rj2m7FsGmbaeISBFciVRrH\nKLGO9VpTFm9lq3nYSWazSNxdHrJQBmnn+Bfin9fG7KezGF6qo+L6fVj2j0pS\nUl6widw17bnyJ6g2MF9YRccGUxWZvB2T4dSiqQjUHhth7QAikXz5wg1Fh1tp\nESbiNZZLzcs/MFdZefQH/zsnpVVduPOFRvrQustquARs4fcgPEvu60EyTYav\nS6BR\r\n=Y3EI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/remove-useless-map.js","engines":{"node":">=14"},"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","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"7.19.1","description":"putout plugin adds ability to remove useless `.map`","directories":{},"_nodeVersion":"16.6.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","eslint":"^8.0.0-beta.0","madrun":"^8.0.1","@putout/test":"^3.0.0","eslint-plugin-node":"^11.0.0"},"peerDependencies":{"putout":">=18"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-map_1.1.0_1629202634347_0.06587361893068744","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/plugin-remove-useless-map","version":"2.0.0","keywords":["putout","putout-plugin","plugin","map","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-map@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-map#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"d5b140c2b13ec2e8ef6c74cc145776256778229a","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-map/-/plugin-remove-useless-map-2.0.0.tgz","fileCount":4,"integrity":"sha512-USURFG3uRan6Ynjmd/vndDrhxVX6DeN+MyeUFFRGchVVH3RB8FpQTFJQh4V/JX7Cnvl/CQGO/rbWiS2Ij1QtZA==","signatures":[{"sig":"MEQCIEb8Yk/qPIh0eJ2/8KdNAf74PNU90m2Mqd7jXu1JkvSwAiA76rWa1TumINM9527JYVFrFkWuMT0Upz+qydCl0JuURg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4157},"main":"lib/remove-useless-map.js","type":"module","engines":{"node":">=20"},"gitHead":"484a9eb43e9528eabaa2992d5ef7774ace5a223d","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","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.1.0","description":"🐊Putout plugin adds ability to remove useless `.map`","directories":{},"_nodeVersion":"23.11.0","dependencies":{"eslint-plugin-putout":"^26.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","@putout/test":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-map_2.0.0_1746957333674_0.8770861970288224","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@putout/plugin-remove-useless-map","version":"3.0.0","keywords":["putout","putout-plugin","plugin","map","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-map@3.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-map#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"8302eed3a06f777f3328935cf286b974ee39d294","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-map/-/plugin-remove-useless-map-3.0.0.tgz","fileCount":4,"integrity":"sha512-+RHlCzoMXbTNlI/bltftQRopM8mlWwjL0bX7fv957nYQfRCy1q7qZB0imkgcSYJDRSufoRk0+Xtg33wl+VAxNg==","signatures":[{"sig":"MEUCIGZK8H84bjrdnYM5ldCWVIiBx/ZxWOeofKl7Iw994xHJAiEAg5YRK2ljnxtO3M8wHETg8w4A/CbaPiQVQsNx3F5FYX8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4421},"main":"lib/remove-useless-map.js","type":"module","engines":{"node":">=22"},"gitHead":"f12b9685be32e1c0f056b39c5aeae0059055b54e","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","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout plugin adds ability to remove useless `.map`","directories":{},"_nodeVersion":"25.6.0","dependencies":{"eslint-plugin-putout":"^30.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","madrun":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^4.0.0"},"peerDependencies":{"putout":">=41"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-map_3.0.0_1770242838956_0.02700939865446239","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"@putout/plugin-remove-useless-map","version":"3.0.1","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless `.map`","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-map#readme","main":"lib/remove-useless-map.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","map","useless"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0","eslint-plugin-n":"^17.0.0","madrun":"^12.0.0"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-useless-map@3.0.1","gitHead":"32f4825bf05f9c899bdf5064a9ad144f76f1d766","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.6.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-b5Odr35fapN46hAGMHaHd8b8fckdKlsJuzmvr7f91cFIj/Fbl/14Tm4SIP0d0mEBWDkX7jVNcbRVtbRZ2BrTnw==","shasum":"599a92a1c7ede29a9e4ab49f63c1d5c952eeea35","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-map/-/plugin-remove-useless-map-3.0.1.tgz","fileCount":4,"unpackedSize":4372,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCl40+xMONG38ZDQGSKNZEIwTlTT/g6ZmykDQdIlUYtIgIhAOtsSUlELobkZjfK6vW8hU0DNGbhv20CX1WxllW+25xo"}]},"_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-remove-useless-map_3.0.1_1771005102973_0.15070296793983795"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-21T19:14:43.122Z","modified":"2026-02-13T17:51:44.819Z","1.0.0":"2021-07-21T19:14:43.369Z","1.1.0":"2021-08-17T12:17:14.500Z","2.0.0":"2025-05-11T09:55:33.866Z","3.0.0":"2026-02-04T22:07:19.098Z","3.0.1":"2026-02-13T17:51:43.114Z"},"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-remove-useless-map#readme","keywords":["putout","putout-plugin","plugin","map","useless"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to remove useless `.map`","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/plugin-remove-useless-map [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-map.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-map \"npm\"\n\n> The `map()` method creates a new array populated with the results of calling a provided function on every element in the calling array.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless `map()`.\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-map\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-map\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst [str] = lines.map((line) => `hello ${line}`);\n\nconst x = array.map((a) => a);\n\nObject\n    .entries(a)\n    .map(([a, b]) => [a, b]);\n```\n\n## ✅ Example of correct code\n\n```js\nconst [line] = lines;\nconst str = `hello ${line}`;\n\nconst x = array;\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}