{"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","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":"http://registry-npm.ywwl.com/@putout/plugin-group-imports-by-source/download/@putout/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,"size":2622,"noattachment":false,"key":"/@putout/plugin-group-imports-by-source/-/@putout/plugin-group-imports-by-source-2.0.3.tgz"},"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"},"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","publish_time":1734865569574,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734865569574,"dist-tags":{"latest":"2.0.4"}}