Bakhtina Sofya b84cb877be 1st comm | 3 týždňov pred | |
---|---|---|
.. | ||
_esm2015 | 3 týždňov pred | |
_esm5 | 3 týždňov pred | |
add | 3 týždňov pred | |
ajax | 3 týždňov pred | |
bundles | 3 týždňov pred | |
fetch | 3 týždňov pred | |
internal | 3 týždňov pred | |
internal-compatibility | 3 týždňov pred | |
migrations | 3 týždňov pred | |
node_modules | 3 týždňov pred | |
observable | 3 týždňov pred | |
operator | 3 týždňov pred | |
operators | 3 týždňov pred | |
scheduler | 3 týždňov pred | |
src | 3 týždňov pred | |
symbol | 3 týždňov pred | |
testing | 3 týždňov pred | |
util | 3 týždňov pred | |
webSocket | 3 týždňov pred | |
AsyncSubject.d.ts | 3 týždňov pred | |
AsyncSubject.js | 3 týždňov pred | |
AsyncSubject.js.map | 3 týždňov pred | |
BehaviorSubject.d.ts | 3 týždňov pred | |
BehaviorSubject.js | 3 týždňov pred | |
BehaviorSubject.js.map | 3 týždňov pred | |
InnerSubscriber.d.ts | 3 týždňov pred | |
InnerSubscriber.js | 3 týždňov pred | |
InnerSubscriber.js.map | 3 týždňov pred | |
LICENSE.txt | 3 týždňov pred | |
Notification.d.ts | 3 týždňov pred | |
Notification.js | 3 týždňov pred | |
Notification.js.map | 3 týždňov pred | |
Observable.d.ts | 3 týždňov pred | |
Observable.js | 3 týždňov pred | |
Observable.js.map | 3 týždňov pred | |
Observer.d.ts | 3 týždňov pred | |
Observer.js | 3 týždňov pred | |
Observer.js.map | 3 týždňov pred | |
Operator.d.ts | 3 týždňov pred | |
Operator.js | 3 týždňov pred | |
Operator.js.map | 3 týždňov pred | |
OuterSubscriber.d.ts | 3 týždňov pred | |
OuterSubscriber.js | 3 týždňov pred | |
OuterSubscriber.js.map | 3 týždňov pred | |
README.md | 3 týždňov pred | |
ReplaySubject.d.ts | 3 týždňov pred | |
ReplaySubject.js | 3 týždňov pred | |
ReplaySubject.js.map | 3 týždňov pred | |
Rx.d.ts | 3 týždňov pred | |
Rx.js | 3 týždňov pred | |
Rx.js.map | 3 týždňov pred | |
Scheduler.d.ts | 3 týždňov pred | |
Scheduler.js | 3 týždňov pred | |
Scheduler.js.map | 3 týždňov pred | |
Subject.d.ts | 3 týždňov pred | |
Subject.js | 3 týždňov pred | |
Subject.js.map | 3 týždňov pred | |
SubjectSubscription.d.ts | 3 týždňov pred | |
SubjectSubscription.js | 3 týždňov pred | |
SubjectSubscription.js.map | 3 týždňov pred | |
Subscriber.d.ts | 3 týždňov pred | |
Subscriber.js | 3 týždňov pred | |
Subscriber.js.map | 3 týždňov pred | |
Subscription.d.ts | 3 týždňov pred | |
Subscription.js | 3 týždňov pred | |
Subscription.js.map | 3 týždňov pred | |
index.d.ts | 3 týždňov pred | |
index.js | 3 týždňov pred | |
index.js.map | 3 týždňov pred | |
interfaces.d.ts | 3 týždňov pred | |
interfaces.js | 3 týždňov pred | |
interfaces.js.map | 3 týždňov pred | |
package.json | 3 týždňov pred |
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: