/node-functional-utils

Functional utilities for Node projects

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Overview

This repo contains an npm library implementing generic functional utilities for the node projects of the Sainte-Justine hospitals.

Installation

npm install @cr-ste-justine/functional-utils

Components

monad

Contains generic monadic utilities to handle monadic types using functional composition.

Please, look at the comments in the monad.js file for documentation about particular functions.

either

Contains generic utilities to wrap results of functions in an Either monad.

Please, look at the comments in the either.js file for documentation about particular functions.