{"_id":"@putout/plugin-sort-imports-by-specifiers","_rev":"1182109","name":"@putout/plugin-sort-imports-by-specifiers","description":"🐊Putout plugin adds ability to find and sort imports by specifiers","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2024-12-31T06:00:14.000Z","created":"2024-03-04T14:34:02.797Z","1.1.2":"2024-12-22T11:06:50.827Z","1.1.1":"2024-12-21T20:37:22.890Z","1.1.0":"2024-03-06T14:03:02.948Z","1.0.0":"2024-03-04T14:34:02.797Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"versions":{"1.1.2":{"name":"@putout/plugin-sort-imports-by-specifiers","version":"1.1.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and sort imports by specifiers","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-sort-imports-by-specifiers#readme","main":"lib/sort-imports-by-specifiers.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":{"parse-import-specifiers":"^1.0.3"},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"devDependencies":{"@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":">=35"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-sort-imports-by-specifiers@1.1.2","gitHead":"06fa9243858a31e21523413915cb274b43652622","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-EGEr0EYCdOyPFQHxtvN96a1oOK5S9UDeggMEm7lTJLlM2sFhqMMVOUutn3qo3uAtkJOX5ddnPtwbZfvSdpGrJQ==","shasum":"9a44c597009ed96af297f92abf2ce72517c05caf","tarball":"http://registry-npm.ywwl.com/@putout/plugin-sort-imports-by-specifiers/download/@putout/plugin-sort-imports-by-specifiers-1.1.2.tgz","fileCount":4,"unpackedSize":5167,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdjkpgk6Fu+pf/bI6uINrtDxLQzbPMQY96XiVuwPyn6gIgaKHmFUWFzTjbhr10PJE8ZAwdil1FZgrDn6hh0ru2+fw="}],"size":2376,"noattachment":false,"key":"/@putout/plugin-sort-imports-by-specifiers/-/@putout/plugin-sort-imports-by-specifiers-1.1.2.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-sort-imports-by-specifiers_1.1.2_1734865610590_0.32266116417405977"},"_hasShrinkwrap":false,"publish_time":1734865610827,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734865610827},"1.1.1":{"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"},"publish_time":1734813442890,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734813442890},"1.1.0":{"name":"@putout/plugin-sort-imports-by-specifiers","version":"1.1.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and sort imports by specifiers","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-sort-imports-by-specifiers#readme","main":"lib/sort-imports-by-specifiers.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":{"parse-import-specifiers":"^1.0.3"},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"devDependencies":{"@putout/test":"^9.0.0","c8":"^9.0.0","eslint":"^9.0.0-alpha.0","eslint-plugin-n":"^17.0.0-0","eslint-plugin-putout":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=35"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-sort-imports-by-specifiers@1.1.0","gitHead":"dd0340cffa59bb3e1b78d0cd6db546a487f4bfca","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"20.11.1","_npmVersion":"10.4.0","dist":{"integrity":"sha512-4LUqfe7NIBjmZe7LzjlYBAyFjlgEPUYASFd+fV9oe/f5g3jF0A/uM3BrlqZI+twmNQNpkIlo9orVALVqps+K6Q==","shasum":"950003f04dfd556d37a45a4a0124614145538f1f","tarball":"http://registry-npm.ywwl.com/@putout/plugin-sort-imports-by-specifiers/download/@putout/plugin-sort-imports-by-specifiers-1.1.0.tgz","fileCount":4,"unpackedSize":5056,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC2/lki/IbR4uTH/XcokOPZZH/rqgfWPPEl+za/x8byQAiEAlwrz4BPZIaE15FHFtzoLDxdxZC43QvYDwyhHsliWymM="}],"size":2345,"noattachment":false,"key":"/@putout/plugin-sort-imports-by-specifiers/-/@putout/plugin-sort-imports-by-specifiers-1.1.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-sort-imports-by-specifiers_1.1.0_1709733782804_0.7223772424692207"},"_hasShrinkwrap":false,"publish_time":1709733782948,"_cnpm_publish_time":1709733782948},"1.0.0":{"name":"@putout/plugin-sort-imports-by-specifiers","version":"1.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and sort imports by specifiers","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-sort-imports-by-specifiers#readme","main":"lib/sort-imports-by-specifiers.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"devDependencies":{"@putout/test":"^9.0.0","c8":"^9.0.0","eslint":"^9.0.0-alpha.0","eslint-plugin-n":"^17.0.0-0","eslint-plugin-putout":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=35"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-sort-imports-by-specifiers@1.0.0","gitHead":"c4c276fe4cdd5fca2e95148b91bfc39e074b8622","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"20.11.1","_npmVersion":"10.4.0","dist":{"integrity":"sha512-XJ1vZ+942dMfQpZhBEfHl8eNExTXBPPRfkJ6hTtc2wpKHOboyruxcXZZ2akquAmvjpnIzIYwMCUXLL+W8R6wZg==","shasum":"653e5d8d0230b1b49d170385083b04fe6d4f08ab","tarball":"http://registry-npm.ywwl.com/@putout/plugin-sort-imports-by-specifiers/download/@putout/plugin-sort-imports-by-specifiers-1.0.0.tgz","fileCount":4,"unpackedSize":4863,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBS4spsIiWgdkmDiJq/DLr3oG87XaEym4GJ14NYibxA6AiBQ1fA5a6Z5isDjB68Bo9KpSpG9Rn/ljQGO1BTdbF/5gw=="}],"size":2295,"noattachment":false,"key":"/@putout/plugin-sort-imports-by-specifiers/-/@putout/plugin-sort-imports-by-specifiers-1.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-sort-imports-by-specifiers_1.0.0_1709562842657_0.2077024491919195"},"_hasShrinkwrap":false,"publish_time":1709562842797,"_cnpm_publish_time":1709562842797}},"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","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-sort-imports-by-specifiers#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}