Gathering detailed insights and metrics for kekka
Gathering detailed insights and metrics for kekka
Gathering detailed insights and metrics for kekka
Gathering detailed insights and metrics for kekka
npm install kekka
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
ISC License
11 Stars
40 Commits
1 Forks
1 Watchers
1 Branches
4 Contributors
Updated on Jun 12, 2024
Latest Version
4.0.1
Package Id
kekka@4.0.1
Unpacked Size
17.28 kB
Size
5.04 kB
File Count
13
NPM Version
10.2.4
Node Version
20.11.0
Published on
Feb 07, 2024
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
A set of monad objects to simplify and clarify your business logic:
The first object is the Result Object inspired by Rust Result Monad. The second is the java inspired Optional.
Never felt that something was missing in Javascript way of managing errors ?
A middle ground between returning undefined
for business reasons and throwing Errors for business reasons.
1getUser(userId) // returns undefined if no user found 2 .then((user) => { 3 if(!user) { 4 // do stuff knowing user was not found 5 } 6 })
Or throwing errors for business reasons ?
1getUser(userId) // returns undefined if no user found 2 .catch((error) => { 3 if(error instanceof NoUserFoundError) { 4 // do stuff knowing user was not found 5 } 6 })
Ever heard about Railway Programming ? or the Rust Result Monad ?
Wanting something like that in Javascript ? I did ! Enter the Result
class.
Tired of writing endless guard clauses like
1if(!userName) { 2 return 3}
or
1if(user && user.name) { 2 // do something 3}
Maybe want more elegant and explicit way to signal optional values in your business logic ?
Look out for the Optional
class
Result Object Documentation
Optional Object Documentation
There is a chai plugin available to make sweeter assertions: chai-kekka.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
6 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
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
Score
Last Scanned on 2025-07-14
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