{"id":19529900,"url":"https://github.com/loopmode/esdoc-importpath-dedupe-plugin","last_synced_at":"2025-02-26T02:43:10.344Z","repository":{"id":57227481,"uuid":"163068567","full_name":"loopmode/esdoc-importpath-dedupe-plugin","owner":"loopmode","description":"Plugin for ESDoc that removes duplicates at the ends of import paths","archived":false,"fork":false,"pushed_at":"2018-12-25T10:50:14.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T20:45:56.053Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loopmode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-25T09:31:29.000Z","updated_at":"2018-12-25T10:50:15.000Z","dependencies_parsed_at":"2022-09-12T21:14:03.407Z","dependency_job_id":null,"html_url":"https://github.com/loopmode/esdoc-importpath-dedupe-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopmode%2Fesdoc-importpath-dedupe-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopmode%2Fesdoc-importpath-dedupe-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopmode%2Fesdoc-importpath-dedupe-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopmode%2Fesdoc-importpath-dedupe-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loopmode","download_url":"https://codeload.github.com/loopmode/esdoc-importpath-dedupe-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240783109,"owners_count":19856776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T01:28:04.555Z","updated_at":"2025-02-26T02:43:10.296Z","avatar_url":"https://github.com/loopmode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESDoc Import Path Dedupe Plugin\nThis is a plugin that converts the import path in documentation.\nIt removes duplicate last parts in import paths, which is useful for components that have a folder and a file with the same name, but are imported using the `index.js` file anyways.\nFor example, consider this structure:\n\n```\nsrc/\n  components/\n    MyComponent/\n      index.js\n      MyComponent.js\n```\n\nIn your codebase, you will do `import MyComponent from 'components/MyComponent'`.\nESDoc will generate docs with `import MyComponent from 'components/MyComponent/MyComponent.js'`.\nUsing this plugin, the docs will be generated with `import MyComponent from 'components/MyComponent'` because the plugin detects that the last two segments of the path are equal when applying the `js` extension.\n\n \n## Install\n```sh\nnpm install esdoc-importpath-dedupe-plugin\n```\n\n## Config\n\nIn the default configuration, only paths to files with the extension `js` are handled, but you can change that using the `extensions` option. \nThe extensions option can be a comma-separated string or an array of extension strings.\n\n```json\n{\n  \"source\": \"./src\",\n  \"destination\": \"./doc\",\n  \"plugins\": [\n    {\n      \"name\": \"esdoc-importpath-dedupe-plugin\",\n      \"option\": {\n        \"extensions\": [\"js\"]\n      }\n    }\n  ]\n}\n```\n\n## LICENSE\nMIT\n\n## Author\nJovica Aleksic\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopmode%2Fesdoc-importpath-dedupe-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floopmode%2Fesdoc-importpath-dedupe-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopmode%2Fesdoc-importpath-dedupe-plugin/lists"}