{"id":22021426,"url":"https://github.com/lamansky/class-ancestors","last_synced_at":"2026-04-16T14:05:36.432Z","repository":{"id":57199476,"uuid":"81930636","full_name":"lamansky/class-ancestors","owner":"lamansky","description":"A Node.js module which returns an array containing the ancestors of a given class.","archived":false,"fork":false,"pushed_at":"2017-02-27T16:02:50.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T19:07:36.675Z","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/lamansky.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-14T09:51:45.000Z","updated_at":"2017-02-14T10:18:28.000Z","dependencies_parsed_at":"2022-09-16T15:01:51.202Z","dependency_job_id":null,"html_url":"https://github.com/lamansky/class-ancestors","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lamansky/class-ancestors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fclass-ancestors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fclass-ancestors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fclass-ancestors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fclass-ancestors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamansky","download_url":"https://codeload.github.com/lamansky/class-ancestors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fclass-ancestors/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259890461,"owners_count":22927374,"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-30T06:12:01.952Z","updated_at":"2026-04-16T14:05:36.379Z","avatar_url":"https://github.com/lamansky.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# class-ancestors\n\nA [Node.js](https://nodejs.org/) module which returns an array containing the ancestors of a given class.\n\n## Installation\n\n```bash\nnpm install class-ancestors --save\n```\n\n## Usage\n\n```javascript\nconst getClassAncestors = require('class-ancestors')\n\nclass A {}\nclass B extends A {}\nclass C extends B {}\n\ngetClassAncestors(C) // [B, A]\ngetClassAncestors.names(C) // ['B', 'A']\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Fclass-ancestors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamansky%2Fclass-ancestors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Fclass-ancestors/lists"}