0.1.2 • Published 1 year ago

@the-minimal/error v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Example

const AssertionError = error<string>("AssertionError");

// ..

if(typeof value !== "number") {
  AssertionError("number", `Value ${value} should be of type number`);
}

Install

yarn add @the-minimal/error

Benchmark

  • Blue = baseline
  • Orange = Error
  • Green = @the-minimal/error

CPU

CPU benchmark

RAM

RAM benchmark

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago