effective.ts
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

effective.ts

A library for writing safe, concurrent, fault-tolerant programs in TypeScript.

Key Features

  • Functional design
    Effective.ts introduces an IO monad, as used in Haskell and Cats Effect (Scala). This allows the manipulation of programs as values, using pure functions. This has a "fluent" method chaining interface, to make it idiomatic to TypeScript.

  • Typed errors
    The IO type tracks the possible errors which can be raised by an action, so you know exactly which error cases you need to handle. No nasty surprises!

  • Concurrency and cancellation
    Launch lightweight async fibers (green threads), with support for early cancellation. Easily run actions in parallel or in sequence.

  • Fault-tolerance
    In the real world, things fail, so effective.ts has built-in support for timeouts and retries with exponential backoff.

API Reference

API reference documentation is hosted here.

Package Sidebar

Install

npm i effective.ts

Weekly Downloads

3

Version

0.2.0

License

MIT

Unpacked Size

34.1 kB

Total Files

13

Last publish

Collaborators

  • davidtimms