{"_id":"@putout/plugin-group-imports-by-source","_rev":"5-080190f47a12c24e856586c93508f79a","name":"@putout/plugin-group-imports-by-source","dist-tags":{"latest":"2.0.4"},"versions":{"1.0.0":{"name":"@putout/plugin-group-imports-by-source","version":"1.0.0","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-group-imports-by-source@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-group-imports-by-source#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"cbd39c0ebdacaa54027bdaf52a57b8e62f2fed3f","tarball":"https://registry.npmjs.org/@putout/plugin-group-imports-by-source/-/plugin-group-imports-by-source-1.0.0.tgz","fileCount":4,"integrity":"sha512-HVg4yugHtM2UlTc8as+saiBL/Zf5Kzm/YLxdLScBODkg8TVCoUeLhWwTKLeW11fP3paqOtQNT5b9vSgMMfd+1A==","signatures":[{"sig":"MEUCIQCpoDh3cFux9mX5o0N94I0BWaEWYeKnBddd/B0mTwv36AIgaVpqBVcU3B/Wz+DKlrTuVYV9tUdQo9omF1l/7v4u3Is=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5917},"main":"lib/group-imports-by-source.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"656ffedd0630cb11e40be65b95f540884b8ea669","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.8.1","description":"🐊Putout plugin adds ability to find and group imports by source","directories":{},"_nodeVersion":"22.3.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":"^10.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^22.0.0","@putout/plugin-nodejs":"^11.11.0"},"peerDependencies":{"putout":">=35"},"_npmOperationalInternal":{"tmp":"tmp/plugin-group-imports-by-source_1.0.0_1718742521521_0.6191527212766852","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/plugin-group-imports-by-source","version":"2.0.0","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-group-imports-by-source@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-group-imports-by-source#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"082c278c3b9a28a5222a9e388afc6286e2b21d26","tarball":"https://registry.npmjs.org/@putout/plugin-group-imports-by-source/-/plugin-group-imports-by-source-2.0.0.tgz","fileCount":4,"integrity":"sha512-aby3J00gso6vEWCzJsTdMb/vuV2GdkN1nNNdBvHj/EnS5Yllu4GH/bbTRDb9WxUbfF/rTl8XYRRVwTv9RVPpCw==","signatures":[{"sig":"MEUCIFlqCm6nzzoZrdGJJKAJLvVHQnQ86SI1zdipRXZQDuNQAiEArK720ykmD2rlcb3mwEjSUDCx2HVkWeUmB4uxDAP4Fes=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5916},"main":"lib/group-imports-by-source.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"c360fefbfd7873f0523d679a515ac73150976ac1","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.8.2","description":"🐊Putout plugin adds ability to find and group imports by source","directories":{},"_nodeVersion":"22.8.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","eslint-plugin-putout":"^23.0.0","@putout/plugin-nodejs":"*"},"peerDependencies":{"putout":">=36"},"_npmOperationalInternal":{"tmp":"tmp/plugin-group-imports-by-source_2.0.0_1729250504673_0.4770502777049699","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@putout/plugin-group-imports-by-source","version":"2.0.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-group-imports-by-source@2.0.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-group-imports-by-source#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"eb9661236035e1dab1fdbd3d881a65cbf2fe8c4e","tarball":"https://registry.npmjs.org/@putout/plugin-group-imports-by-source/-/plugin-group-imports-by-source-2.0.1.tgz","fileCount":4,"integrity":"sha512-xkjouHy+I9xh8Cc5w6G9T0gBJBJyFC8TxuVoA47lnymEJv0sBGtsIZ+OuLjB3Yyyka5lTHkNBX3yzdReBN10uw==","signatures":[{"sig":"MEUCIQCYMfkfGu1MR3wVAKoDMqlLEfHH51MQS53mvSfdia8M9wIgan3g6pnPU5ljRVhmS/lAmmj1zjE5O+P0Fi4KYmgrymk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6002},"main":"lib/group-imports-by-source.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 group imports by source","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","eslint-plugin-putout":"^23.0.0","@putout/plugin-nodejs":"*"},"peerDependencies":{"putout":">=36"},"_npmOperationalInternal":{"tmp":"tmp/plugin-group-imports-by-source_2.0.1_1734813546081_0.6543461331591403","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@putout/plugin-group-imports-by-source","version":"2.0.2","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-group-imports-by-source@2.0.2","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/v36.18.0/packages/plugin-group-imports-by-source#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"58eaaf6d980e68d30b85944d81356a5937fee707","tarball":"https://registry.npmjs.org/@putout/plugin-group-imports-by-source/-/plugin-group-imports-by-source-2.0.2.tgz","fileCount":4,"integrity":"sha512-uF+PhUmRfTeIwM4CdRMCcmBcj70LdM+CdO1rCSfbTumsqeAPYezyAkWOSi90L/6pqPzRgS5OrSCDEknVk5It2w==","signatures":[{"sig":"MEQCIBOQXKMOuN6cJdT1hI3J3i2pqO/1Pm2tb9oJSt/prbmQAiB9l80mi2+LFStaPZ2rj5H6WvlhG+TMDM6ZhSX/vc/KQg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6004},"main":"lib/group-imports-by-source.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,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.9.0","description":"🐊Putout plugin adds ability to find and group imports by source","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","eslint-plugin-putout":"^23.0.0","@putout/plugin-nodejs":"*"},"peerDependencies":{"putout":">=36"},"_npmOperationalInternal":{"tmp":"tmp/plugin-group-imports-by-source_2.0.2_1734865390005_0.33252451320327125","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"@putout/plugin-group-imports-by-source","version":"2.0.3","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-group-imports-by-source@2.0.3","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/v36.18.0/packages/plugin-group-imports-by-source#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"b5e1f3e13962c8d32e516c1d213c65a5d87bfc43","tarball":"https://registry.npmjs.org/@putout/plugin-group-imports-by-source/-/plugin-group-imports-by-source-2.0.3.tgz","fileCount":4,"integrity":"sha512-BaPxfvcMKDMB9GqzlaJcAeEg1yTfpBpo/uu5BMctWpo2hzNk6WxzTPF2p4I+oh9NIkictvNQOqFxDSLttcNXlA==","signatures":[{"sig":"MEUCIQCiQvs5gznIZrALip7E0KCwHaDKERrynaZKaRikCtwi5gIgfVLxMs2VagtYkoZxvPHr39dBESytUeq/oBu3gHXuuws=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6029},"main":"lib/group-imports-by-source.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,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.9.0","description":"🐊Putout plugin adds ability to find and group imports by source","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","eslint-plugin-putout":"^23.0.0","@putout/plugin-nodejs":"*"},"peerDependencies":{"putout":">=36"},"_npmOperationalInternal":{"tmp":"tmp/plugin-group-imports-by-source_2.0.3_1734865569351_0.5039536643172724","host":"s3://npm-registry-packages-npm-production"}},"2.0.4":{"name":"@putout/plugin-group-imports-by-source","version":"2.0.4","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and group imports by source","homepage":"https://github.com/coderaiser/putout/tree/v36.18.0/packages/plugin-group-imports-by-source#readme","main":"lib/group-imports-by-source.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":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"devDependencies":{"@putout/plugin-nodejs":"*","@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":">=36"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-group-imports-by-source@2.0.4","gitHead":"06fa9243858a31e21523413915cb274b43652622","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-QKL/CHGEGNF9QU6bHLYHMOnwIn5TpGPYSfGCGrodHuF4BwEtWgccZlYhXRaauL5yx7vagH5uRG9MkG6roTiZrg==","shasum":"9ed0326c821d1f6ee5dbabd8076b14b28b5e4b9f","tarball":"https://registry.npmjs.org/@putout/plugin-group-imports-by-source/-/plugin-group-imports-by-source-2.0.4.tgz","fileCount":4,"unpackedSize":6155,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrYzxXgmMrXqwrnlULKzDcNT8hNjE6AMovwctJ/VJNWgIhAP4eba+OYV4k4Py8LUuATCAInH1Lz22oYHzvtUr9HFzY"}]},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-group-imports-by-source_2.0.4_1734865789445_0.35791152156851314"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-18T20:28:41.412Z","modified":"2024-12-22T11:09:49.819Z","1.0.0":"2024-06-18T20:28:41.651Z","2.0.0":"2024-10-18T11:21:44.843Z","2.0.1":"2024-12-21T20:39:06.263Z","2.0.2":"2024-12-22T11:03:10.194Z","2.0.3":"2024-12-22T11:06:09.574Z","2.0.4":"2024-12-22T11:09:49.632Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/v36.18.0/packages/plugin-group-imports-by-source#readme","keywords":["putout","putout-plugin","putout-plugin-remove","plugin","debugger"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to find and group imports by source","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/plugin-group-imports-by-source [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-group-imports-by-source.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-group-imports-by-source \"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 group `import` statements by source. Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/3cc782acf95211f9d456d63a99032ee1/0674223d050bba572f5271ffdccf8616cb441af5). For **CommonJS** use [`nodejs/group-require-by-id`](https://www.npmjs.com/package/@putout/plugin-nodejs#group-require-by-id).\nMerged with [`@putout/plugin-esm`](https://www.npmjs.com/package/@putout/plugin-esm##group-imports-by-source).\n\nGroup order:\n\n- ✅ builtins;\n- ✅ external;\n- ✅ internal;\n\n## Install\n\n```\nnpm i @putout/plugin-group-imports-by-source\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"group-imports-by-source\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nimport fs from 'node:fs';\nimport {lodash} from 'lodash';\nimport react from 'react';\nimport d from '../hello.js';\nimport ss from '../../bb/ss.js';\nimport b from './ss.js';\n\nconst c = 5;\n```\n\n## ✅ Example of correct code\n\n```js\nimport fs from 'node:fs';\nimport react from 'react';\nimport {lodash} from 'lodash';\nimport b from './ss.js';\nimport d from '../hello.js';\nimport ss from '../../bb/ss.js';\n\nconst c = 5;\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}