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