Bakhtina Sofya b84cb877be 1st comm | há 3 semanas atrás | |
---|---|---|
.. | ||
_esm2015 | há 3 semanas atrás | |
_esm5 | há 3 semanas atrás | |
add | há 3 semanas atrás | |
ajax | há 3 semanas atrás | |
bundles | há 3 semanas atrás | |
fetch | há 3 semanas atrás | |
internal | há 3 semanas atrás | |
internal-compatibility | há 3 semanas atrás | |
migrations | há 3 semanas atrás | |
node_modules | há 3 semanas atrás | |
observable | há 3 semanas atrás | |
operator | há 3 semanas atrás | |
operators | há 3 semanas atrás | |
scheduler | há 3 semanas atrás | |
src | há 3 semanas atrás | |
symbol | há 3 semanas atrás | |
testing | há 3 semanas atrás | |
util | há 3 semanas atrás | |
webSocket | há 3 semanas atrás | |
AsyncSubject.d.ts | há 3 semanas atrás | |
AsyncSubject.js | há 3 semanas atrás | |
AsyncSubject.js.map | há 3 semanas atrás | |
BehaviorSubject.d.ts | há 3 semanas atrás | |
BehaviorSubject.js | há 3 semanas atrás | |
BehaviorSubject.js.map | há 3 semanas atrás | |
InnerSubscriber.d.ts | há 3 semanas atrás | |
InnerSubscriber.js | há 3 semanas atrás | |
InnerSubscriber.js.map | há 3 semanas atrás | |
LICENSE.txt | há 3 semanas atrás | |
Notification.d.ts | há 3 semanas atrás | |
Notification.js | há 3 semanas atrás | |
Notification.js.map | há 3 semanas atrás | |
Observable.d.ts | há 3 semanas atrás | |
Observable.js | há 3 semanas atrás | |
Observable.js.map | há 3 semanas atrás | |
Observer.d.ts | há 3 semanas atrás | |
Observer.js | há 3 semanas atrás | |
Observer.js.map | há 3 semanas atrás | |
Operator.d.ts | há 3 semanas atrás | |
Operator.js | há 3 semanas atrás | |
Operator.js.map | há 3 semanas atrás | |
OuterSubscriber.d.ts | há 3 semanas atrás | |
OuterSubscriber.js | há 3 semanas atrás | |
OuterSubscriber.js.map | há 3 semanas atrás | |
README.md | há 3 semanas atrás | |
ReplaySubject.d.ts | há 3 semanas atrás | |
ReplaySubject.js | há 3 semanas atrás | |
ReplaySubject.js.map | há 3 semanas atrás | |
Rx.d.ts | há 3 semanas atrás | |
Rx.js | há 3 semanas atrás | |
Rx.js.map | há 3 semanas atrás | |
Scheduler.d.ts | há 3 semanas atrás | |
Scheduler.js | há 3 semanas atrás | |
Scheduler.js.map | há 3 semanas atrás | |
Subject.d.ts | há 3 semanas atrás | |
Subject.js | há 3 semanas atrás | |
Subject.js.map | há 3 semanas atrás | |
SubjectSubscription.d.ts | há 3 semanas atrás | |
SubjectSubscription.js | há 3 semanas atrás | |
SubjectSubscription.js.map | há 3 semanas atrás | |
Subscriber.d.ts | há 3 semanas atrás | |
Subscriber.js | há 3 semanas atrás | |
Subscriber.js.map | há 3 semanas atrás | |
Subscription.d.ts | há 3 semanas atrás | |
Subscription.js | há 3 semanas atrás | |
Subscription.js.map | há 3 semanas atrás | |
index.d.ts | há 3 semanas atrás | |
index.js | há 3 semanas atrás | |
index.js.map | há 3 semanas atrás | |
interfaces.d.ts | há 3 semanas atrás | |
interfaces.js | há 3 semanas atrás | |
interfaces.js.map | há 3 semanas atrás | |
package.json | há 3 semanas atrás |
Find out how to update to v6, automatically update your TypeScript code, and more!
Reactive Extensions Library for JavaScript. This is a rewrite of Reactive-Extensions/RxJS and is the latest production-ready version of RxJS. This rewrite is meant to have better performance, better modularity, better debuggable call stacks, while staying mostly backwards compatible, with some breaking changes that reduce the API surface.
npm install rxjs
By contributing or commenting on issues in this repository, whether you've read them or not, you're agreeing to the Contributor Code of Conduct. Much like traffic laws, ignorance doesn't grant you immunity.
npm install rxjs
It's recommended to pull in the Observable creation methods you need directly from 'rxjs'
as shown below with range
. And you can pull in any operator you need from one spot, under 'rxjs/operators'
.
import { range } from "rxjs";
import { map, filter } from "rxjs/operators";
range(1, 200)
.pipe(
filter(x => x % 2 === 1),
map(x => x + x)
)
.subscribe(x => console.log(x));
Here, we're using the built-in pipe
method on Observables to combine operators. See pipeable operators for more information.
To install this library for CommonJS (CJS) usage, use the following command:
npm install rxjs
(Note: destructuring available in Node 8+)
const { range } = require('rxjs');
const { map, filter } = require('rxjs/operators');
range(1, 200).pipe(
filter(x => x % 2 === 1),
map(x => x + x)
).subscribe(x => console.log(x));
For CDN, you can use unpkg:
https://unpkg.com/rxjs/bundles/rxjs.umd.min.js
The global namespace for rxjs is rxjs
:
const { range } = rxjs;
const { map, filter } = rxjs.operators;
range(1, 200)
.pipe(
filter(x => x % 2 === 1),
map(x => x + x)
)
.subscribe(x => console.log(x));
npm run build_all
- builds everythingnpm test
- runs testsnpm run test_no_cache
- run test with ts-node
set to falseRun npm run build_perf
or npm run perf
to run the performance tests with protractor
.
Run npm run perf_micro [operator]
to run micro performance test benchmarking operator.
We appreciate all contributions to the documentation of any type. All of the information needed to get the docs app up and running locally as well as how to contribute can be found in the documentation directory.
The script npm run tests2png
requires some native packages installed locally: imagemagick
, graphicsmagick
, and ghostscript
.
For Mac OS X with Homebrew:
brew install imagemagick
brew install graphicsmagick
brew install ghostscript
mkdir -p /usr/local/share/ghostscript && tar zxvf /path/to/ghostscript-fonts.tar.gz -C /usr/local/share/ghostscript
For Debian Linux:
sudo add-apt-repository ppa:dhor/myway
apt-get install imagemagick
apt-get install graphicsmagick
apt-get install ghostscript
For Windows and other Operating Systems, check the download instructions here: