{"name":"@putout/plugin-merge-duplicate-imports","version":"11.0.3","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to merge duplicate-imports","homepage":"https://github.com/coderaiser/putout/tree/v36.18.0/packages/plugin-merge-duplicate-imports#readme","main":"lib/index.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":{},"keyswords":["putout","putout-plugin","putout-plugin-merge","plugin","merge","duplicate","imports"],"devDependencies":{"@putout/plugin-declare":"*","@putout/plugin-nodejs":"*","@putout/plugin-tape":"*","@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=34"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-merge-duplicate-imports@11.0.3","gitHead":"06fa9243858a31e21523413915cb274b43652622","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-4Duu+E8YreijRGfUrlGmkgPUgswodcHbDJ8TRfL9t7rb6IBCFRz4iaNfeh1owyN5EeRKlhY4NnCZlyKByD9JSg==","shasum":"c11d8c15dac794ff810e3a3ab2d2409482b881bb","tarball":"http://registry-npm.ywwl.com/@putout/plugin-merge-duplicate-imports/download/@putout/plugin-merge-duplicate-imports-11.0.3.tgz","fileCount":29,"unpackedSize":10389,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0H5uc8Ovv/TwIcDhCmjBZu1EMyFS6tMQWs5dLwLttAAIhAK6cUvUovcCQKdwazH8/WNyGcoNterrbhEAHWFJccDG6"}],"size":4028,"noattachment":false,"key":"/@putout/plugin-merge-duplicate-imports/-/@putout/plugin-merge-duplicate-imports-11.0.3.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-merge-duplicate-imports_11.0.3_1734865538328_0.9071084767363118"},"_hasShrinkwrap":false,"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":1734865538517,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734865538517,"dist-tags":{"latest":"11.0.3"}}