Skip to content

pavvell/rxstream

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
doc
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

RxStream

If all you need is just a stream (RxJS Subject). Very lightweight (1.5Kb gzipped) and tree-shaking friendly.

Installation

Using npm:

$ npm i -g npm
$ npm i --save rxstream

Documentation

Documentation

Example

import { Subject } from 'rxstream';

let stream$ = new Subject();
stream$.subscribe(value => console.log(value));
stream$.next(1); // 1
stream$.next(2); // 2

Tree-shaking

To perform better tree-shaking, import what you need from its local module, for example:

import { Subject } from 'rxstream/es5/subjects/subject';
import { merge } from 'rxstream/es5/operators/merge';

About

If all you need is just a stream (RxJS Subject). Very lightweight (1.5Kb gzipped) and tree-shaking friendly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published