Gathering detailed insights and metrics for @mobily/ts-belt
Gathering detailed insights and metrics for @mobily/ts-belt
Gathering detailed insights and metrics for @mobily/ts-belt
Gathering detailed insights and metrics for @mobily/ts-belt
npm install @mobily/ts-belt
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1,117 Stars
448 Commits
31 Forks
14 Watching
2 Branches
8 Contributors
Updated on 23 Nov 2024
TypeScript (75.48%)
ReScript (14.89%)
JavaScript (9.26%)
Shell (0.23%)
Reason (0.15%)
Cumulative downloads
Total Downloads
Last day
-15%
13,084
Compared to previous day
Last week
5.9%
76,264
Compared to previous week
Last month
24%
309,160
Compared to previous month
Last year
143.2%
2,337,086
Compared to previous year
Fast, modern, and practical utility library for FP in TypeScript.
Full documentation can be found here.
ReScript
, which generates highly performant JavaScript code (see the benchmark results here)data-first
approachTypeScript
and Flow
Option
and Result
types1yarn add @mobily/ts-belt
or with npm
1npm install @mobily/ts-belt --save
Module | Namespace | Description |
---|---|---|
Array | A | Utility functions for Array . |
Boolean | B | Utility functions for Boolean . |
Number | N | Utility functions for Number . |
Object (Dict) | D | Utility functions for Object . |
String | S | Utility functions for String . |
Guards | G | Various TypeScript guards. |
Option | O | Functions for handling the Option data type that represents the existence and nonexistence of a value. |
Result | R | Functions for describing the result of a certain operation without relying on exceptions. |
Function | F | Other useful functions. |
1import { A, O, N, pipe } from '@mobily/ts-belt' 2 3pipe( 4 [1, 2, 3, 4, 5], // β [1, 2, 3, 4, 5] 5 A.dropExactly(2), // β Some([3, 4, 5]) 6 O.flatMap(A.head), // β Some(3) 7 O.map(N.multiply(10)), // β Some(30) 8 O.getWithDefault(0), // β 30 9) // β 30
The MIT License.
See LICENSE
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/29 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
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
67 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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