Gathering detailed insights and metrics for ts-pipe-compose
Gathering detailed insights and metrics for ts-pipe-compose
Gathering detailed insights and metrics for ts-pipe-compose
Gathering detailed insights and metrics for ts-pipe-compose
ts-functional-pipe
Heavily overloaded functions (pipe/compose) for type-safe function composition in TypeScript
@arrows/composition
Functional composition library
@cdandrea/piping-ts
100% type-safe pipe() function written in TS
@ze-ts/composition
A set of functions to compose functions in a functional way.
Pipeline and Compose with TypeScript definition
npm install ts-pipe-compose
Typescript
Module System
Min. Node Version
Node Version
NPM Version
80.5
Supply Chain
96.1
Quality
76
Maintenance
100
Vulnerability
100
License
TypeScript (88.46%)
JavaScript (11.54%)
Total Downloads
541,887
Last Day
334
Last Week
1,471
Last Month
6,761
Last Year
91,366
MIT License
12 Stars
167 Commits
2 Forks
1 Watchers
11 Branches
3 Contributors
Updated on Nov 11, 2024
Minified
Minified + Gzipped
Latest Version
0.2.1
Package Id
ts-pipe-compose@0.2.1
Unpacked Size
372.29 kB
Size
10.94 kB
File Count
10
NPM Version
6.14.7
Node Version
14.14.0
Cumulative downloads
Total Downloads
Last Day
-9.7%
334
Compared to previous day
Last Week
46.5%
1,471
Compared to previous week
Last Month
-25.2%
6,761
Compared to previous month
Last Year
12.4%
91,366
Compared to previous year
pipe
, pipeline
, and compose
functions with TypeScript definitions
This package not only provides simple pipe
, pipeline
, and compose
implementation, it also provides many TypeScript overloads for each function. [See index.d.ts]
pipe
Signature: pipe (value, ...functions) → result
1const y = pipe(x0, f1, f2, f3)
is equivalent to
1const x1 = f1(x0) 2const x2 = f2(x1) 3const x3 = f3(x2) 4const y = f3(x3)
or
1const y = f3(f2(f1(x0)))
pipeline
Signature: pipeline (...functions) → function
1const fn = pipe(f0, f1, f2, f3)
is equivalent to
1const fn = (...args) => f3(f2(f1(f0(...args))))
compose
Signature: compose (...functions) → function
1const fn = compose(f3, f2, f1, f0)
is equivalent to
1const fn = (...args) => f3(f2(f1(f0(...args))))
composeRight
It is just an alias of pipeline
1// pipe 2const y0 = pipe(x, f1, f2, f3, f4) 3 4// pipeline 5const g1 = pipeline(f0, f1, f2, f3, f4) 6const y1 = g1(...args) 7 8// compose 9const g2 = compose(f4, f3, f2, f1, f0) 10const y2 = g2(...args)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/15 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
26 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
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