1.0.3 • Published 2 years ago

@arcletjs/nepattern v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@arcletjs/nepattern

Licence codecov

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

  • Pattern Matching
  • Type Convert
  • Type Guard
  • Type Check
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago