rx-maybe

0.5.5 • Public • Published

rx-maybe

Reactive Extenstions - represents a deferred computation and emission of a single value, no value at all or an exception.

NPM

HitCount

Platform Build Status
Linux Build Status
Windows Build status

codecov Known Vulnerabilities

Install

NPM

npm i rx-maybe

CDN

  • jsDelivr
<script src="https://cdn.jsdelivr.net/npm/rx-cancellable/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/rx-scheduler/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/rx-maybe/dist/index.min.js"></script>
  • unpkg
<script src="https://unpkg.com/rx-cancellable/dist/index.min.js"></script>
<script src="https://unpkg.com/rx-scheduler/dist/index.min.js"></script>
<script src="https://unpkg.com/rx-maybe/dist/index.min.js"></script>

Usage

Loading the module

CommonJS

const Maybe = require('rx-maybe');

Loading the CommonJS module provides the Maybe class.

Browser

Loading the JavaScript file for the rx-maybe provides the Maybe class

Documentation

You can read the documentation at the official doc site

Build

Clone the repo first, then run the following to install the dependencies

npm install

To build the coverages, run the test suite, the docs, and the distributable modules:

npm run build

Changelogs

  • 0.5.4
    • Cancellable and Scheduler update compliance
  • 0.5.0
    • Reintroduced zip
  • 0.4.0
    • Massive performance boost
    • Renamed zip to zipArray
    • added ambArray
  • 0.3.0
    • Replaced AbortController with Cancellable.
    • Renamed doOnAbort with doOnCancel
  • 0.2.0
    • now uses Schedulers
    • delay, delaySubscription, timeout and timer now accepts Schedulers (defaults to Scheduler.current).
    • added two new operators: observeOn (observes the emissions on a given Scheduler) and subscribeOn (subscribes to a given Single on a given Scheduler).
  • 0.1.0
    • Release

Readme

Keywords

Package Sidebar

Install

npm i rx-maybe

Weekly Downloads

2

Version

0.5.5

License

MIT

Unpacked Size

176 kB

Total Files

8

Last publish

Collaborators

  • lxsmnsyc