side-effector

0.1.1 • Public • Published

SideEffector

An Effect monad library. Allows you to defer dealing with impurities until you actually run them.

forthebadge forthebadge

Quickstart

Importing the library

Import via require

const SideEffector = require('side-effector')

Import as ES module

import SideEffector from 'side-effector'

Import in the browser

<script src="https://cdn.jsdelivr.net/npm/side-effector@0.1.1/side-effector.min.js"></script>

Notes

Derived from James Sinclair's post, How to Deal with Dirty Side-Effects in Your Pure Functional JavaScript.

License

MIT

Package Sidebar

Install

npm i side-effector

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

30.7 kB

Total Files

10

Last publish

Collaborators

  • johnpaulada