{"id":16689761,"url":"https://github.com/bennidi/coffee-latte","last_synced_at":"2026-05-24T19:02:54.307Z","repository":{"id":57202655,"uuid":"77250075","full_name":"bennidi/coffee-latte","owner":"bennidi","description":"Sweet mixins for coffeescript. Supports prototype and class methods as well as constructor call hierarchies.","archived":false,"fork":false,"pushed_at":"2016-12-26T18:26:04.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-20T05:45:53.748Z","etag":null,"topics":["coffeescript","mixins","prototype","traits"],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/bennidi.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":"2016-12-23T20:52:09.000Z","updated_at":"2023-02-28T20:21:58.000Z","dependencies_parsed_at":"2022-09-15T13:21:22.286Z","dependency_job_id":null,"html_url":"https://github.com/bennidi/coffee-latte","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/bennidi%2Fcoffee-latte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennidi%2Fcoffee-latte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennidi%2Fcoffee-latte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennidi%2Fcoffee-latte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bennidi","download_url":"https://codeload.github.com/bennidi/coffee-latte/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243467024,"owners_count":20295309,"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":["coffeescript","mixins","prototype","traits"],"created_at":"2024-10-12T15:49:14.629Z","updated_at":"2025-12-26T20:35:16.600Z","avatar_url":"https://github.com/bennidi.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Latte: Advanced mixins for CoffeeScript\n\nAs CoffeeScript users we have been told many times that there is no support for mixins on the language level because it is so easy to implement them on top of native language concepts. Although I believe that native support for Mixins would be a lovely addition to CS, I also understand that it ain't gonna happen.\n\n## Features\n\n- Mixins are classes, no restrictions made\n- Both prototype and class level properties take part in mixes\n- Mixin consumers are classes that extend Mixin\n- Mixins can extend Mixins\n- Mixins can have constructors\n\n```coffeescript\n\nclass AutoUUID\n  constructor: -\u003e @_id ?= randomId()\n\nclass Named extends Mixin\n  constructor:(@name)-\u003e\n  nickname: -\u003e \"nick#{@name}\"\n  @staticName:-\u003e\"static#{@name}\"\n\nclass NamedIdentifiable extends Mixin\n  @with AutoUUID, Named\n  \n  constructor:-\u003e super() # super call is required\n  \n\ninstance = new NamedIdentifiable() \nexpect(instance).to.have.property '_id'\nexpect(instance.nickname()).to.be 'nickundefined'\n\n\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennidi%2Fcoffee-latte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbennidi%2Fcoffee-latte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennidi%2Fcoffee-latte/lists"}