Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <img src="doc/asset/Rx_Logo_S.png" alt="RxJS Logo" width="86" height="86"> RxJS: Reactive Extensions For JavaScript
  2. ======================================
  3. [![Build Status](https://travis-ci.org/ReactiveX/rxjs.svg?branch=master)](https://travis-ci.org/ReactiveX/rxjs)
  4. [![Coverage Status](https://coveralls.io/repos/github/ReactiveX/rxjs/badge.svg?branch=master)](https://coveralls.io/github/ReactiveX/rxjs?branch=master)
  5. [![npm version](https://badge.fury.io/js/%40reactivex%2Frxjs.svg)](http://badge.fury.io/js/%40reactivex%2Frxjs)
  6. [![Join the chat at https://gitter.im/Reactive-Extensions/RxJS](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Reactive-Extensions/RxJS?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
  7. [![Selenium Test Status](https://saucelabs.com/browser-matrix/rxjs5.svg)](https://saucelabs.com/u/rxjs5)
  8. # RxJS 6 Stable
  9. ### MIGRATION AND RELEASE INFORMATION:
  10. Find out how to update to v6, **automatically update your TypeScript code**, and more!
  11. - [Current home is MIGRATION.md](./docs_app/content/guide/v6/migration.md)
  12. ### FOR V 5.X PLEASE GO TO [THE 5.0 BRANCH](https://github.com/ReactiveX/rxjs/tree/stable)
  13. Reactive Extensions Library for JavaScript. This is a rewrite of [Reactive-Extensions/RxJS](https://github.com/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.
  14. [Apache 2.0 License](LICENSE.txt)
  15. - [Code of Conduct](CODE_OF_CONDUCT.md)
  16. - [Contribution Guidelines](CONTRIBUTING.md)
  17. - [Maintainer Guidelines](doc/maintainer-guidelines.md)
  18. - [Creating Operators](doc/operator-creation.md)
  19. - [API Documentation (WIP)](http://reactivex.io/rxjs)
  20. ## Versions In This Repository
  21. - [master](https://github.com/ReactiveX/rxjs/commits/master) - This is all of the current, unreleased work, which is against v6 of RxJS right now
  22. - [stable](https://github.com/ReactiveX/rxjs/commits/stable) - This is the branch for the latest version you'd get if you do `npm install rxjs`
  23. ## Important
  24. 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](CODE_OF_CONDUCT.md). Much like traffic laws, ignorance doesn't grant you immunity.
  25. ## Installation and Usage
  26. ### ES6 via npm
  27. ```sh
  28. npm install rxjs
  29. ```
  30. To import only what you need by patching (this is useful for size-sensitive bundling):
  31. ```js
  32. import { Observable, Subject, ReplaySubject, from, of, range } from 'rxjs';
  33. import { map, filter, switchMap } from 'rxjs/operators';
  34. range(1, 200)
  35. .pipe(filter(x => x % 2 === 1), map(x => x + x))
  36. .subscribe(x => console.log(x));
  37. ```
  38. Alternatively, you can use the built-in `pipe` method on Observables. See [pipeable operators](https://github.com/ReactiveX/rxjs/blob/master/doc/pipeable-operators.md) for more information.
  39. ### CommonJS via npm
  40. To install this library for CommonJS (CJS) usage, use the following command:
  41. ```sh
  42. npm install rxjs
  43. ```
  44. (Note: destructuring available in Node 8+)
  45. ```js
  46. const { Observable, Subject, ReplaySubject, from, of, range } = require('rxjs');
  47. const { map, filter, switchMap } = require('rxjs/operators');
  48. range(1, 200)
  49. .pipe(filter(x => x % 2 === 1), map(x => x + x))
  50. .subscribe(x => console.log(x));
  51. ```
  52. ### CDN
  53. For CDN, you can use [unpkg](https://unpkg.com/):
  54. https://unpkg.com/rxjs/bundles/rxjs.umd.min.js
  55. The global namespace for rxjs is `rxjs`:
  56. ```js
  57. const { Observable, Subject, ReplaySubject, from, of, range } = rxjs;
  58. const { map, filter, switchMap } = rxjs.operators;
  59. range(1, 200)
  60. .pipe(filter(x => x % 2 === 1), map(x => x + x))
  61. .subscribe(x => console.log(x));
  62. ```
  63. ## Goals
  64. - Smaller overall bundles sizes
  65. - Provide better performance than preceding versions of RxJS
  66. - To model/follow the [Observable Spec Proposal](https://github.com/zenparsing/es-observable) to the observable.
  67. - Provide more modular file structure in a variety of formats
  68. - Provide more debuggable call stacks than preceding versions of RxJS
  69. ## Building/Testing
  70. - `npm run build_all` - builds everything
  71. - `npm test` - runs tests
  72. - `npm run test_no_cache` - run test with `ts-node` set to false
  73. `npm run info` will list available scripts (there are a lot LOL)
  74. ## Performance Tests
  75. Run `npm run build_perf` or `npm run perf` to run the performance tests with `protractor`.
  76. Run `npm run perf_micro [operator]` to run micro performance test benchmarking operator.
  77. ## Adding documentation
  78. 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](./docs_app).
  79. ## Generating PNG marble diagrams
  80. The script `npm run tests2png` requires some native packages installed locally: `imagemagick`, `graphicsmagick`, and `ghostscript`.
  81. For Mac OS X with [Homebrew](http://brew.sh/):
  82. - `brew install imagemagick`
  83. - `brew install graphicsmagick`
  84. - `brew install ghostscript`
  85. - You may need to install the Ghostscript fonts manually:
  86. - Download the tarball from the [gs-fonts project](https://sourceforge.net/projects/gs-fonts)
  87. - `mkdir -p /usr/local/share/ghostscript && tar zxvf /path/to/ghostscript-fonts.tar.gz -C /usr/local/share/ghostscript`
  88. For Debian Linux:
  89. - `sudo add-apt-repository ppa:dhor/myway`
  90. - `apt-get install imagemagick`
  91. - `apt-get install graphicsmagick`
  92. - `apt-get install ghostscript`
  93. For Windows and other Operating Systems, check the download instructions here:
  94. - http://imagemagick.org
  95. - http://www.graphicsmagick.org
  96. - http://www.ghostscript.com/