{"name":"@putout/plugin-merge-duplicate-imports","version":"11.0.1","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-merge-duplicate-imports@11.0.1","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-merge-duplicate-imports#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"6e06096cd5470f31a4507b90effd799a3b925d23","tarball":"http://registry-npm.ywwl.com/@putout/plugin-merge-duplicate-imports/download/@putout/plugin-merge-duplicate-imports-11.0.1.tgz","fileCount":29,"integrity":"sha512-3yi8aej9/GlFXMopo+wKYzYrETHbHizPU1Qdu35HPM0T8HDHVFeMeMgKHUpdhuAsiXfLzl9HFjIr7tOEJYDskg==","signatures":[{"sig":"MEUCIHZvILlKVCI7aqwtQvU63zAibZ/hHRL81u1sDPgseysaAiEAx9SROqXWdBifuP+nH4Tx4L6A6S2ENjU02ktTErsmhOY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10363,"size":4021,"noattachment":false,"key":"/@putout/plugin-merge-duplicate-imports/-/@putout/plugin-merge-duplicate-imports-11.0.1.tgz"},"main":"lib/index.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"abde958138e302f0560ff37ab0d586d81ffc5305","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,"keyswords":["putout","putout-plugin","putout-plugin-merge","plugin","merge","duplicate","imports"],"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.9.0","description":"🐊Putout plugin adds ability to merge duplicate-imports","directories":{},"_nodeVersion":"22.12.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","@putout/plugin-tape":"*","eslint-plugin-putout":"^23.0.0","@putout/plugin-nodejs":"*","@putout/plugin-declare":"*"},"peerDependencies":{"putout":">=34"},"_npmOperationalInternal":{"tmp":"tmp/plugin-merge-duplicate-imports_11.0.1_1734813574671_0.8332156382842684","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/plugin-merge-duplicate-imports [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-merge-duplicate-imports.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-merge-duplicate-imports \"npm\"\n\n> The static `import` statement is used to `import` read only live bindings which are exported by another module.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and merge duplicate imports. Merged to [`@putout/plugin-esm`](https://www.npmjs.com/package/@putout/plugin-esm#merge-duplicate-imports).\n\n## Install\n\n```\nnpm i @putout/plugin-merge-duplicate-imports\n```\n\n```json\n{\n    \"rules\": {\n        \"merge-duplicate-imports/join\": \"on\",\n        \"merge-duplicate-imports/rename\": \"on\"\n    }\n}\n```\n\n## join\n\n### ❌ Example of incorrect code\n\n```js\nimport test from 'supertape';\nimport {stub} from 'supertape';\n```\n\n### ✅ Example of correct code\n\n```js\nimport test, {stub} from 'supertape';\n```\n\n## rename\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/6604936dec6b1eed8ce0d143f2962f15/17b310a6e4d85b0b8615a8b91d0e27414e8af291).\n\n### ❌ Example of incorrect code\n\n```js\nimport putout from './putout.js';\nimport all from './putout.js';\nimport x from './putout.js';\n\nconsole.log(all);\nconsole.log(x);\n```\n\n### ✅ Example of correct code\n\n```js\nimport putout from './putout.js';\n\nconsole.log(putout);\nconsole.log(putout);\n```\n\n## License\n\nMIT\n","publish_time":1734813574847,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734813574847,"dist-tags":{"latest":"11.0.3"}}