{"id":19332484,"url":"https://github.com/yuchi/lozenge","last_synced_at":"2026-06-09T20:31:12.186Z","repository":{"id":27124939,"uuid":"30593261","full_name":"yuchi/lozenge","owner":"yuchi","description":"Multiple inheritance with ES6 Proxies","archived":false,"fork":false,"pushed_at":"2015-02-24T08:46:27.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T07:17:56.966Z","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":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuchi.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":"2015-02-10T13:28:59.000Z","updated_at":"2015-02-24T08:46:27.000Z","dependencies_parsed_at":"2022-09-01T00:00:52.295Z","dependency_job_id":null,"html_url":"https://github.com/yuchi/lozenge","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yuchi/lozenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuchi%2Flozenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuchi%2Flozenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuchi%2Flozenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuchi%2Flozenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuchi","download_url":"https://codeload.github.com/yuchi/lozenge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuchi%2Flozenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34125332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10T02:45:58.869Z","updated_at":"2026-06-09T20:31:12.158Z","avatar_url":"https://github.com/yuchi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"♦ Lozenge\n==========\n\nDiamond inheritance with ES6 Proxies.\n\nAs of writing works only on Firefox.\n\n```\n$ npm install lozenge\n```\n\n\nUsage\n-----\n\n```js\nclass Worker {\n  help() { console.log(`${this.name} is helping`); }\n}\n\nclass Person {\n  say() { console.log(`Hi! I’m ${this.name}!`); }\n}\n\nclass TeamMember extends Lozange.of(Worker, Person) {\n  constructor(name) {\n    this.name = name;\n  }\n}\n\nvar mario = new TeamMember('Mario');\n\nmario.help(); // Mario is helping\nmario.say();  // Hi! I’m Mario!\n\nPerson.prototype.say = function () {\n  console.log(`It’sa me, ${this.name}!`);\n};\n\nmario.say();  // It’sa me, Mario!\n```\n\n\nLicense\n-------\n\nThis library, *lozenge*, is free software (\"Licensed Software\"); you can\nredistribute it and/or modify it under the terms of the [GNU Lesser General\nPublic License](http://www.gnu.org/licenses/lgpl-2.1.html) as published by the\nFree Software Foundation; either version 2.1 of the License, or (at your\n  option) any later version.\n\n  This library is distributed in the hope that it will be useful, but WITHOUT ANY\n  WARRANTY; including but not limited to, the implied warranty of MERCHANTABILITY,\n  NONINFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General\n  Public License for more details.\n\n  You should have received a copy of the [GNU Lesser General Public\n  License](http://www.gnu.org/licenses/lgpl-2.1.html) along with this library; if\n  not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth\n  Floor, Boston, MA 02110-1301 USA\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuchi%2Flozenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuchi%2Flozenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuchi%2Flozenge/lists"}