{"id":20806138,"url":"https://github.com/nowayhecodes/semiconductor","last_synced_at":"2026-04-17T19:31:43.950Z","repository":{"id":48403937,"uuid":"389778299","full_name":"nowayhecodes/semiconductor","owner":"nowayhecodes","description":"Multiple dispatch pattern library written with TypeScript","archived":false,"fork":false,"pushed_at":"2021-07-28T23:23:46.000Z","size":273,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T03:34:47.155Z","etag":null,"topics":["fp","functional","immutable","multimethods","multiple-dispatch","npm-package","ts","typescript","typescript-library"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/nowayhecodes.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":"2021-07-26T21:58:56.000Z","updated_at":"2023-02-12T20:16:38.000Z","dependencies_parsed_at":"2022-09-21T20:40:47.317Z","dependency_job_id":null,"html_url":"https://github.com/nowayhecodes/semiconductor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nowayhecodes/semiconductor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowayhecodes%2Fsemiconductor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowayhecodes%2Fsemiconductor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowayhecodes%2Fsemiconductor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowayhecodes%2Fsemiconductor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nowayhecodes","download_url":"https://codeload.github.com/nowayhecodes/semiconductor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowayhecodes%2Fsemiconductor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31943256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fp","functional","immutable","multimethods","multiple-dispatch","npm-package","ts","typescript","typescript-library"],"created_at":"2024-11-17T19:18:18.045Z","updated_at":"2026-04-17T19:31:43.930Z","avatar_url":"https://github.com/nowayhecodes.png","language":"TypeScript","readme":"[![codecov](https://codecov.io/gh/nowayhecodes/semiconductor/branch/main/graph/badge.svg?token=TEMqv3Ery0)](https://codecov.io/gh/nowayhecodes/semiconductor)\n![languages](https://img.shields.io/github/languages/count/nowayhecodes/semiconductor)\n![top-language](https://img.shields.io/github/languages/top/nowayhecodes/semiconductor)\n![code-size](https://img.shields.io/github/languages/code-size/nowayhecodes/semiconductor)\n![npm-downloads](https://img.shields.io/npm/dw/semiconductor)\n![license](https://img.shields.io/github/license/nowayhecodes/semiconductor)\n![release](https://img.shields.io/github/v/release/nowayhecodes/semiconductor)\n![types](https://img.shields.io/npm/types/semiconductor)\n\n# Semiconductor\n\nMultiple dispatch pattern library written with TypeScript.\n\nThis library provides a tiny set of higher-order functions to create powerful, immutable multimethods - in a functional way.\n\nTo summarize, multiple dispatch (or multimethods) is a way to add superpowers to our functions/methods. They can do all that ordinary functions can, and additionally:\n\n- can choose proper implementation based on the provided arguments, without explicit conditional logic\n- can be easily extended, without the need to modify the original code\n- allow you to write clean, concise and decoupled code\n\n### What?\n\n###### ([Wikipedia](https://en.wikipedia.org/wiki/Multiple_dispatch))\n\nMultiple dispatch (or multimethods) is a pattern in which a function or method can be dynamically dispatched based on the run-time (dynamic) type or, in the more general case, some other attribute of more than one of its arguments.\n\nMultiple dispatch is a generalization of _single dispatch polymorphism_, where a method call is dynamically dispatched based on the derived type of object on which the method has been called.\n\nMultiple dispatch routes the dynamic dispatch to the implementing method using the combined characteristics of one or more arguments.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowayhecodes%2Fsemiconductor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnowayhecodes%2Fsemiconductor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowayhecodes%2Fsemiconductor/lists"}