{"name":"@putout/plugin-merge-duplicate-imports","version":"11.0.2","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-merge-duplicate-imports@11.0.2","homepage":"https://github.com/coderaiser/putout/tree/v36.18.0/packages/plugin-merge-duplicate-imports#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"85a037fe423f0ab2d778ae918a1f39c84277105b","tarball":"http://registry-npm.ywwl.com/@putout/plugin-merge-duplicate-imports/download/@putout/plugin-merge-duplicate-imports-11.0.2.tgz","fileCount":29,"integrity":"sha512-dS5YHaf8cgrLrF2rV6xaB1rlctC9yzJSWaGIyfB74jAYGLNwm/qVNHMm1RIUZBGT0AokuSCC2SOf6kplgpuCVg==","signatures":[{"sig":"MEYCIQDpw5nQNBMHHpPvhyYZUK2FDaGRwtuJ4DZuIugIOwTFaAIhAMqEYYupkNKe0cyc/xtiA8Mz5fiTJloiBNvS6VQQh8M4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10365,"size":4025,"noattachment":false,"key":"/@putout/plugin-merge-duplicate-imports/-/@putout/plugin-merge-duplicate-imports-11.0.2.tgz"},"main":"lib/index.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"06fa9243858a31e21523413915cb274b43652622","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.2_1734865323051_0.09021121233139251","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":1734865323239,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734865323239,"dist-tags":{"latest":"11.0.3"}}