Skip to content

Getting started

Installation

To start using Unwrap, you can install it via npm or yarn. In your console:

bash
pnpm add @unnullable/unwrap
bash
npm install @unnullable/unwrap
bash
yarn add @unnullable/unwrap

Why Unwrap?

Unwrap was created to lower the entry barrier to functional programming in TypeScript. While object-oriented programming (OOP) requires grasping complex concepts like encapsulation, inheritance, and design patterns, functional programming can be even more challenging due to its reliance on abstract concepts such as monads, functors, groups, algebraic data types, and many more.

Libraries like fp-ts provide powerful tools, but their mathematical terminology can make them inaccessible to beginners. Unwrap simplifies functional programming by introducing monads with semantic sugar, making it easier for developers to start using these techniques without getting lost in difficult jargon.