{"id":18552445,"url":"https://github.com/andrejewski/independency","last_synced_at":"2025-05-15T11:12:53.292Z","repository":{"id":57273390,"uuid":"62461292","full_name":"andrejewski/independency","owner":"andrejewski","description":"Source code dependency graph generator","archived":false,"fork":false,"pushed_at":"2016-07-07T02:47:13.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-10T04:03:34.803Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrejewski.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}},"created_at":"2016-07-02T17:03:35.000Z","updated_at":"2022-12-05T05:05:08.000Z","dependencies_parsed_at":"2022-09-17T15:11:37.266Z","dependency_job_id":null,"html_url":"https://github.com/andrejewski/independency","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/andrejewski%2Findependency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejewski%2Findependency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejewski%2Findependency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejewski%2Findependency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrejewski","download_url":"https://codeload.github.com/andrejewski/independency/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328389,"owners_count":22052633,"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-06T21:14:13.838Z","updated_at":"2025-05-15T11:12:48.276Z","avatar_url":"https://github.com/andrejewski.png","language":"JavaScript","readme":"# Independency\nIndependency is a code dependency graph generator that is language agnostic and useful for doing project-wide static analysis.\n\n```sh\nnpm install independency\n```\n\n```js\nconst assert = require('assert');\nconst independency = require('independency');\n\nindependency({\n  filepath: __filename,\n  shouldAddFile(info) {\n    return !info.path.contains('node_modules');\n  },\n  analyze(filepath, code) {\n    // see contrib/javascript for example\n    const imports = getImports(code);\n    const exports = getExports(code);\n    return {imports, exports};\n  }\n}, (error, graph) =\u003e {\n  assert.equal(graph.path, __filename);\n  assert(Array.isArray(graph.imports));\n  assert(Array.isArray(graph.exports));\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejewski%2Findependency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrejewski%2Findependency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejewski%2Findependency/lists"}