Skip to content

charmsRace/just-maybe

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published