Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
/ monix.js Public archive

JS/TypeScript/Flow library for composing asynchronous and event-based programs

License

Notifications You must be signed in to change notification settings

funfix/monix.js

Repository files navigation

Monix.js

Warning

This repository has been unmaintained and is now ARCHIVED.

Monix.js is a reactive streams library for JavaScript, TypeScript and Flow.

Inspired by Scala and Monix.

Usage

The code is organized in sub-projects, for à la carte dependencies, but all types, classes and functions are exported by monix, so to import everything:

npm install --save monix

Or you can depend on individual sub-projects, see below.

Modules: UMD and ES 2015

The library has been compiled using UMD (Universal Module Definition), so it should work with CommonJS and AMD, for standalone usage in browsers or Node.js.

But it also provides a module definition in package.json, thus providing compatibility with ECMAScript 2015 modules, for usage when used with a modern JS engine, or when bundling with a tool chain that understands ES2015 modules, like Rollup or Webpack.

Sub-projects

Monix.js has been split in multiple sub-projects for à la carte dependency management. As mentioned above, you can depend on everything by depending on the monix project.

TypeScript or Flow?

Monix.js supports both TypeScript and Flow type annotations out of the box.

It also makes the best use of the capabilities of each. For example TypeScript has bivariant generics, but Flow supports variance annotations and Monix.js makes use of them. Development happens in TypeScript, due to better tooling, but both are first class citizens.

Contributing

The Monix.js project welcomes contributions from anybody wishing to participate. All code or documentation that is provided must be licensed with the same license that Monix.js is licensed with (Apache 2.0).

Feel free to open an issue if you notice a bug, have an idea for a feature, or have a question about the code. Pull requests are also gladly accepted. For more information, check out the contributor guide.

License

All code in this repository is licensed under the Apache License, Version 2.0. See LICENCE.

About

JS/TypeScript/Flow library for composing asynchronous and event-based programs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published