{"id":20077571,"url":"https://github.com/digitaledgeit/js-extend-class","last_synced_at":"2025-08-16T13:46:50.480Z","repository":{"id":17862913,"uuid":"20792863","full_name":"digitaledgeit/js-extend-class","owner":"digitaledgeit","description":"Classical object inheritance.","archived":false,"fork":false,"pushed_at":"2015-05-09T01:33:15.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T12:03:21.727Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitaledgeit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-13T05:14:05.000Z","updated_at":"2015-04-07T01:17:32.000Z","dependencies_parsed_at":"2022-09-24T19:21:23.484Z","dependency_job_id":null,"html_url":"https://github.com/digitaledgeit/js-extend-class","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fjs-extend-class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fjs-extend-class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fjs-extend-class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fjs-extend-class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitaledgeit","download_url":"https://codeload.github.com/digitaledgeit/js-extend-class/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241509617,"owners_count":19974071,"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-13T15:09:03.519Z","updated_at":"2025-03-02T12:44:48.051Z","avatar_url":"https://github.com/digitaledgeit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# extend-class\n\nCreates a new class inheriting the methods and properties of a parent class, and copies a new set of methods and properties to the child class.\n\n - Uses [prototypal inheritance](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Inheritance_and_the_prototype_chain)\n - The `instanceof` operator works\n - If present, a constructor named `construct` is called\n\n**Note:** Large prototype chains can impact performance. Use sparingly. \n\n## Install\n\nWith npm:\n\n    npm install --save extend-class\n\nWith componentjs:\n\n    component install --save extend-class\n    \n## Example\n    \n    var extend = require('extend-class');\n    \n    ...\n    \n    var Cat = extend(Animal, {\n    \n        construct: function() {\n            Animal.call(this);\n        },\n    \n        noise: function() {\n            return 'Meeow!'\n        }\n    \n    });","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaledgeit%2Fjs-extend-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitaledgeit%2Fjs-extend-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaledgeit%2Fjs-extend-class/lists"}