https://github.com/scalajs-io/rx
Library for composing asynchronous and event-based operations in JavaScript
https://github.com/scalajs-io/rx
node nodejs npm npm-package rxjs scala scalajs
Last synced: 4 months ago
JSON representation
Library for composing asynchronous and event-based operations in JavaScript
- Host: GitHub
- URL: https://github.com/scalajs-io/rx
- Owner: scalajs-io
- License: apache-2.0
- Created: 2017-02-05T02:02:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-17T23:11:17.000Z (about 6 years ago)
- Last Synced: 2025-01-17T22:42:25.269Z (5 months ago)
- Topics: node, nodejs, npm, npm-package, rxjs, scala, scalajs
- Language: Scala
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Rx.js API for Scala.js
================================
[rx](http://reactivex.io/rxjs/) - Library for composing asynchronous and event-based operations in JavaScript### Description
Applications, especially on the web have changed over the years from being a simple static page,
to DHTML with animations, to the Ajax revolution. Each time, we're adding more complexity, more data,
and asynchronous behavior to our applications. How do we manage it all? How do we scale it? By moving
towards "Reactive Architectures" which are event-driven, resilient and responsive. With the Reactive Extensions,
you have all the tools you need to help build these systems.### Build Requirements
* [SBT v1.2.x](http://www.scala-sbt.org/download.html)
### Build/publish the SDK locally
```bash
$ sbt clean publish-local
```### Examples
```scala
import io.scalajs.npm.rx._Rx.Observable.range(0, 5).filterWith(_ % 2 == 0).drainFuture map { values =>
println(s"output: $values") //=> 0, 2, 4
}
```### Artifacts and Resolvers
To add the `Rx` binding to your project, add the following to your build.sbt:
```sbt
libraryDependencies += "io.scalajs.npm" %%% "rx" % "0.5.0"
```Optionally, you may add the Sonatype Repository resolver:
```
resolvers += Resolver.sonatypeRepo("releases")
```