1.0.1 • Published 7 years ago

@calamitizer/just-maybe v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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)