Skip to main content

Installation and Usage

First, make to sure to have typescript@4.7 installed, as otherwise the types won't work properly.

npm i fnts
yarn add fnts

Now, every function can be imported directly from its source location by a default import:

import maybe from 'fnts/maybe';
import identity from 'fnts/identity';

Also, there's an index.ts file in the root of the project as well as in all underlying modules, allowing for named imports.

import { left, Either } from 'fnts/either';
import { permutation2 } from 'fnts/permutation';
import { bifoldMap, first } from 'fnts/either/operators';