Gathering detailed insights and metrics for @brillout/assert
Gathering detailed insights and metrics for @brillout/assert
Gathering detailed insights and metrics for @brillout/assert
Gathering detailed insights and metrics for @brillout/assert
Minimalistic & simple assertion library for writing end-user apps.
npm install @brillout/assert
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
11 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Dec 11, 2020
Latest Version
0.3.4
Package Id
@brillout/assert@0.3.4
Unpacked Size
9.13 kB
Size
3.52 kB
File Count
14
NPM Version
6.14.8
Node Version
14.15.1
Published on
Dec 11, 2020
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
3
Minimalistic & simple assertion library for writing end-user apps. For writing libraries see github.com/brillout/libassert instead.
For example:
1import { assert } from @brillout/assert; 2 3assert(false, { 4 undefinedProp: undefined, 5 deep: { nested: { object: { prop: 42 } } }, 6});
Will print the following (purposely) verbose assertion error message:
[@brillout/assert] BEGIN
{
undefinedProp: undefined,
deep: { nested: { object: { prop: 42 } } }
}
[@brillout/assert] END
/home/romu/code/assert/dist/index.js:20
throw new Error(messagePrefix + "Assertion failed. See messages printed between `" + BEGIN + "` and `" + END + "`.");
^
Error: [@brillout/assert] Assertion failed. See messages printed between `[@brillout/assert] BEGIN` and `[@brillout/assert] END`.
at Object.assert (/home/romu/code/assert/dist/index.js:20:11)
at Object.<anonymous> (/home/romu/code/assert/dist/test.js:4:9)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:822:10)
at internal/main/run_main_module.js:17:11
Check the (tiny) source code for more information.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More