Gathering detailed insights and metrics for @0x/utils
Gathering detailed insights and metrics for @0x/utils
Gathering detailed insights and metrics for @0x/utils
Gathering detailed insights and metrics for @0x/utils
npm install @0x/utils
Typescript
Module System
Min. Node Version
Node Version
NPM Version
60.9
Supply Chain
90.7
Quality
80.2
Maintenance
50
Vulnerability
97.3
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,551,364
Last Day
501
Last Week
4,366
Last Month
22,658
Last Year
345,723
100 Stars
16,563 Commits
67 Forks
9 Watching
44 Branches
86 Contributors
Minified
Minified + Gzipped
Latest Version
7.0.0
Package Id
@0x/utils@7.0.0
Unpacked Size
523.52 kB
Size
113.62 kB
File Count
305
NPM Version
lerna/3.16.10/node@v16.16.0+arm64 (darwin)
Node Version
16.16.0
Cumulative downloads
Total Downloads
Last day
-46.8%
501
Compared to previous day
Last week
-31.7%
4,366
Compared to previous week
Last month
-2.6%
22,658
Compared to previous month
Last year
-57%
345,723
Compared to previous year
14
Utils to be shared across 0x projects and packages
1yarn add @0x/utils
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}
1import { addressUtils, bigNumberConfigs, classUtils, intervalUtils, promisify } from '@0x/utils';
If you are still seeing TS type errors complaining about missing DOM types such as Response
:
error TS2304: Cannot find name 'Response'.
Then you need to explicitly add the dom
lib to your compiler options in tsconfig.json
. The dom
library is included by default, but customizing the lib
option can cause it to be dropped.
"compilerOptions": {
"lib": [..., "dom"],
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/utils yarn build
Or continuously rebuild on change:
1PKG=@0x/utils yarn watch
1yarn clean
1yarn lint
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