@calamitizer/just-maybe
v1.0.1
Published
A rigorous but lightweight implementation of the Maybe monad.
Downloads
1
Maintainers
Readme
just-maybe
A lightweight implementation of the Maybe (Optional) monad, with rigorous TypeScript definitions provided.
Written as an exercise to learn best practices for maintaining JS/TS compatibility when publishing NPM modules.
Installation
npm i @calamitizer/just-maybe
# or
yarn add @calamitizer/just-maybe
Usage
import Maybe from '@calamitizer/just-maybe';
Maybe.just('An example string').ifPresent(console.log);
To-Do
- Documentation, maybe
- Unit testing (Ava is already set up)