{"id":17446020,"url":"https://github.com/jamen/import-graph","last_synced_at":"2025-04-02T10:43:13.507Z","repository":{"id":96784818,"uuid":"183805056","full_name":"jamen/import-graph","owner":"jamen","description":"Create a graph of imports with Graphviz.","archived":false,"fork":false,"pushed_at":"2019-08-17T16:47:07.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T01:48:18.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/jamen.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-27T17:54:57.000Z","updated_at":"2021-12-19T15:24:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"83e2ec17-2ab3-41f6-b83c-54d0e26bb14b","html_url":"https://github.com/jamen/import-graph","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/jamen%2Fimport-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fimport-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fimport-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fimport-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/import-graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246802594,"owners_count":20836365,"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-10-17T18:20:43.533Z","updated_at":"2025-04-02T10:43:13.483Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @jamen/import-graph\n\nCreate import graphs with [Graphviz][2].\n\n![example][1]\n\n## Usage\n\nThe easiest way to use it is `npx`:\n\n```\nnpx @jamen/import-graph src/**.js | dot -T svg \u003e imports.svg\n```\n\nThe command takes file paths and outputs [DOT][3].\n\nThe folloing options may be supplied:\n\n- `-i`, `--ignore \u003cpattern\u003e`: Omit files that match the pattern. Defaults to defaults to `node_modules` and `.git`.\n- `-f`, `--from \u003cdirectory\u003e`: Change where paths in labels are relative from. Defaults to cwd.\n- `-o`, `--output \u003cfile\u003e`: Outputs to a file instead of stdout.\n\n### What languages are supported?\n\nThis tool uses regex patterns to build the graph, making it easy to support many languages with different import syntax, without parsing every language.\n\nThe files it supports by default are:\n\n- JavaScript ESM \u0026 Commonjs\n- TypeScript\n- package.json (i.e. `main` and `bin` fields)\n- CSS\n- SCSS/SASS\n- Less.js\n- Stylus\n\n[1]: example.svg\n[2]: http://graphviz.org/\n[3]: https://en.wikipedia.org/wiki/DOT_(graph_description_language)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fimport-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fimport-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fimport-graph/lists"}