Skip to main content

Built and signed on GitHub Actions

This package works with Bun, Cloudflare Workers, Node.js, Deno, Browsers
JSR Score
100%
Published
3 months ago (0.1.0)
class AssertionError
extends Error

An error that is thrown when an assertion fails.

Constructors

new
AssertionError(message: string)

Creates a new AssertionError with the given message.

Add Package

deno add @knudsen/assert

Import symbol

import { AssertionError } from "@knudsen/assert";

Add Package

npx jsr add @knudsen/assert

Import symbol

import { AssertionError } from "@knudsen/assert";

Add Package

yarn dlx jsr add @knudsen/assert

Import symbol

import { AssertionError } from "@knudsen/assert";

Add Package

pnpm dlx jsr add @knudsen/assert

Import symbol

import { AssertionError } from "@knudsen/assert";

Add Package

bunx jsr add @knudsen/assert

Import symbol

import { AssertionError } from "@knudsen/assert";