New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

assert-fn-throw-typeerror

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assert-fn-throw-typeerror

Wrapper for assert-fn that makes it throw a TypeError instead of an assertion error

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

assert-fn-throw-typeerror

Wrapper for assert that throws TypeError instead of AssertionError

var assert = require("assert-fn")
// or
var assert = require("node:assert")

var TE = require("assert-fn-throw-typeerror")

TE(() => assert(false, "Assertion failed blabla")) // Uncaught TypeError: Assertion failed blabla

Keywords

TypeError

FAQs

Package last updated on 28 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts