Gathering detailed insights and metrics for @0x/assert
Gathering detailed insights and metrics for @0x/assert
Gathering detailed insights and metrics for @0x/assert
Gathering detailed insights and metrics for @0x/assert
@0xproject/assert
Provides a standard way of performing type and schema validation across 0x projects
0x-assert
Provides a standard way of performing type and schema validation across 0x projects
@0x-klaytn/assert
Provides a standard way of performing type and schema validation across 0x projects
npm install @0x/assert
Typescript
Module System
Min. Node Version
Node Version
NPM Version
56
Supply Chain
86.7
Quality
80
Maintenance
50
Vulnerability
96.7
License
tools - bee0702
Published on 07 Apr 2023
tools - c33f74a
Published on 07 Apr 2023
tools - 8c79268
Published on 26 Jan 2023
tools - 38f717a
Published on 13 Oct 2022
tools - aad2bd4
Published on 18 Aug 2022
tools - 0787b82
Published on 16 Mar 2022
TypeScript (65.97%)
MDX (23.63%)
Python (4.88%)
JavaScript (2.83%)
Handlebars (1.59%)
Solidity (1.1%)
Total Downloads
4,221,408
Last Day
356
Last Week
3,184
Last Month
16,732
Last Year
263,930
100 Stars
16,563 Commits
67 Forks
9 Watching
44 Branches
86 Contributors
Latest Version
3.0.36
Package Id
@0x/assert@3.0.36
Unpacked Size
42.07 kB
Size
7.51 kB
File Count
9
NPM Version
lerna/3.16.10/node@v16.20.0+x64 (linux)
Node Version
16.20.0
Publised On
07 Apr 2023
Cumulative downloads
Total Downloads
Last day
-50.8%
356
Compared to previous day
Last week
-32.9%
3,184
Compared to previous week
Last month
3.5%
16,732
Compared to previous month
Last year
-63.5%
263,930
Compared to previous year
Standard type and schema assertions to be used across all 0x projects and packages
1yarn add @0x/assert
1import { assert } from '@0x/assert'; 2 3assert.isValidBaseUnitAmount('baseUnitAmount', baseUnitAmount);
If your project is in TypeScript, add the following to your tsconfig.json
:
1"compilerOptions": { 2 "typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"], 3}
We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.
Please read our contribution guidelines before getting started.
If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:
1yarn config set workspaces-experimental true
Then install dependencies
1yarn install
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
1PKG=@0x/assert yarn build
Or continuously rebuild on change:
1PKG=@0x/assert yarn watch
1yarn clean
1yarn lint
1yarn test
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/11 approved changesets -- score normalized to 2
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
48 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-23
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