{"name":"@putout/plugin-sort-imports-by-specifiers","version":"1.1.1","keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-sort-imports-by-specifiers@1.1.1","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-sort-imports-by-specifiers#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"e79d7fecfb7856580ba7ccee992c867a3ee30395","tarball":"http://registry-npm.ywwl.com/@putout/plugin-sort-imports-by-specifiers/download/@putout/plugin-sort-imports-by-specifiers-1.1.1.tgz","fileCount":4,"integrity":"sha512-jT04D33eSL5hcYURPiJZ935ogS2LiS1ZVEj4Cyo9opUgcKWArfS48HIVj7ORw9nIbhDb1ZAQWr89UFKb+SimAw==","signatures":[{"sig":"MEUCIC2pAuqeGeiRwUQ0ng1HKTTaN0xOGdbj/yy8bvIrIirbAiEAlovR83RicYP5Oormb16e5nzbbLD4ZZOA3inAOmem/zA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5140,"size":2370,"noattachment":false,"key":"/@putout/plugin-sort-imports-by-specifiers/-/@putout/plugin-sort-imports-by-specifiers-1.1.1.tgz"},"main":"lib/sort-imports-by-specifiers.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,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.9.0","description":"🐊Putout plugin adds ability to find and sort imports by specifiers","directories":{},"_nodeVersion":"22.12.0","dependencies":{"parse-import-specifiers":"^1.0.3"},"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","eslint-plugin-putout":"^23.0.0"},"peerDependencies":{"putout":">=35"},"_npmOperationalInternal":{"tmp":"tmp/plugin-sort-imports-by-specifiers_1.1.1_1734813442610_0.4274488368507259","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/plugin-sort-imports-by-specifiers [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-sort-imports-by-specifiers.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-sort-imports-by-specifiers \"npm\"\n\n> The static **import** declaration is used to import read-only live bindings which are exported by another module.\n> The imported bindings are called live bindings because they are updated by the module that exported the binding, but cannot be re-assigned by the importing 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 sort `import` statements by specifiers. Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/521e2ff199243a7ce1f65db7140c272e/28c0588281286f8a6765b8aa2ecabbfcde2973a7). Merged with [`@putout/plugin-esm`](https://www.npmjs.com/package/@putout/plugin-esm#sort-imports-by-specifiers).\n\n## Install\n\n```\nnpm i @putout/plugin-sort-imports-by-specifiers\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"sort-imports-by-specifiers\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nimport {\n    a,\n    b,\n    c,\n    d,\n} from 'd';\nimport a1 from 'a1';\n```\n\n## ✅ Example of correct code\n\n```js\nimport a1 from 'a1';\nimport {\n    a,\n    b,\n    c,\n    d,\n} from 'd';\n```\n\n## License\n\nMIT\n","publish_time":1734813442890,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734813442890,"dist-tags":{"latest":"1.1.2"}}