@arcletjs/nepattern
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@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

  • [x] Pattern Matching
  • [x] Type Convert
  • [x] Type Guard
  • [x] Type Check

Package Sidebar

Install

npm i @arcletjs/nepattern

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

132 kB

Total Files

7

Last publish

Collaborators

  • rf-tar-railt