{"id":15315199,"url":"https://github.com/himself65/class-callable","last_synced_at":"2025-04-15T02:17:31.836Z","repository":{"id":44121217,"uuid":"194205772","full_name":"himself65/class-callable","owner":"himself65","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-04T01:20:59.000Z","size":540,"stargazers_count":8,"open_issues_count":12,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-15T02:17:26.181Z","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/himself65.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":"2019-06-28T04:24:37.000Z","updated_at":"2022-04-28T02:59:41.000Z","dependencies_parsed_at":"2023-02-01T17:30:54.090Z","dependency_job_id":null,"html_url":"https://github.com/himself65/class-callable","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/himself65%2Fclass-callable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himself65%2Fclass-callable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himself65%2Fclass-callable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himself65%2Fclass-callable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/himself65","download_url":"https://codeload.github.com/himself65/class-callable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991561,"owners_count":21194894,"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-10-01T08:49:53.714Z","updated_at":"2025-04-15T02:17:31.807Z","avatar_url":"https://github.com/himself65.png","language":"JavaScript","readme":"# class-callable\n\n\u003e make class callable\n\n[![npm version](https://badge.fury.io/js/class-callable.svg)](https://badge.fury.io/js/class-callable)\n[![Build Status](https://www.travis-ci.com/Himself65/callable-class.svg?branch=master)](https://www.travis-ci.com/Himself65/class-callable)\n\n## USAGE\n\n```bash\nyarn add class-callable\n```\n\n```js\nclass A extends Callable {\n  constructor (props) {\n    super('__call__')\n  }\n\n  __call__ () {\n    return 'called'\n  }\n}\n\nclass B extends Callable {\n  __call__ () {\n    return 'called'\n  }\n}\n\nclass C extends Callable {\n  constructor () {\n    super(function () {\n      return 'called'\n    })\n  }\n}\n\nconst a = new A()\na()\n// 'called'\nconst b = new B()\nb()\n// 'called'\nconst c = new C()\nc()\n// 'called'\n```\n\n## LICENSE\n\nFollow [MIT](LICENSE) LICENSE\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimself65%2Fclass-callable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimself65%2Fclass-callable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimself65%2Fclass-callable/lists"}