{"library":"typescript-pattern-matching","type":"library","category":null,"description":"This library, `typescript-pattern-matching`, offers functional-style pattern matching capabilities for TypeScript, addressing the absence of native `match` or `case` keywords found in languages like F# or Haskell. It enables developers to implement sophisticated conditional logic by comparing data against various patterns, including value, record, wildcard, and negated patterns, with robust type inference. Version 1.0.1 is the latest release, but the project has seen no updates in over six years (last published December 2019). While it provides a basic implementation for structured pattern matching, its development has ceased, leading to a state of abandonment. More actively maintained and feature-rich alternatives have emerged in the TypeScript ecosystem. It requires TypeScript 3.7.3 or higher to function correctly.","language":"javascript","status":"abandoned","version":"1.0.1","tags":["javascript","TypeScript","Pattern Matching","Advanced Types","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install typescript-pattern-matching","imports":["import { match } from 'typescript-pattern-matching'","match(value).with(pattern, handler).run()"]},{"cmd":"yarn add typescript-pattern-matching","imports":[]},{"cmd":"pnpm add typescript-pattern-matching","imports":[]}],"homepage":null,"github":"https://github.com/WimJongeneel/ts-pattern-matching","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/typescript-pattern-matching","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/typescript-pattern-matching/compatibility"}}