@arcletjs/nepattern
v1.0.3
Published
Not-Enough-Pattern
Downloads
10
Maintainers
Readme
@arcletjs/nepattern
About
NEPattern
(Not-Enough-Pattern
) is a library for pattern matching and type convert in TypeScript.
Example
import {Pattern} from "@arcletjs/nepattern";
let pat = Pattern.of(Number)
pat.validate(13).isSuccess() // true
pat.validate([13]).step(Boolean) // false
Features
- [x] Pattern Matching
- [x] Type Convert
- [x] Type Guard
- [x] Type Check