@ibbleinc-oss/typescript-monads
TypeScript icon, indicating that this package has built-in type declarations

5.6.0 • Public • Published

📚 typescript-monads

Better TypeScript Control Flow

circeci codeclimate

semantic-release npm latest version

typescript-monads helps you write safer code by using abstractions over messy control flow and state.

Installation

You can use this library in the browser, node, or a bundler

Node or as a module

npm install typescript-monads

Browser

<head>
 <script src="https://unpkg.com/typescript-monads"></script>
 <!-- or use a specific version to avoid a http redirect --> 
 <script src="https://unpkg.com/typescript-monads@5.3.0/index.min.js"></script>
</head>
var someRemoteValue;
typescriptMonads.maybe(someRemoteValue).tapSome(console.log)

Example Usage

Maybe

TODO

List

TODO

Either

TODO

Reader

TODO

Result

TODO

State

TODO

Logger

TODO

Dependencies (1)

Dev Dependencies (21)

Package Sidebar

Install

npm i @ibbleinc-oss/typescript-monads

Weekly Downloads

1

Version

5.6.0

License

MIT

Unpacked Size

473 kB

Total Files

176

Last publish

Collaborators

  • adamtyler
  • jzaleski