reactive-js
所属分类:前端开发
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-09-24 05:21:39
上 传 者:
sh-1993
说明: 快速现代 ReactJavascript编程库,
(Fast modern reactive Javascript programming library,)
文件列表:
.eslintrc.cjs (2734, 2023-12-17)
.prettierignore (218, 2023-12-17)
.prettierrc (248, 2023-12-17)
LICENSE.md (1075, 2023-12-17)
build-mod.deno (739, 2023-12-17)
docs/ (0, 2023-12-17)
docs/.nojekyll (143, 2023-12-17)
docs/classes/ (0, 2023-12-17)
docs/classes/utils.BackPressureError.md (1115, 2023-12-17)
docs/interfaces/ (0, 2023-12-17)
docs/interfaces/collections.AssociativeLike.md (719, 2023-12-17)
docs/interfaces/collections.CollectionLike.md (662, 2023-12-17)
docs/interfaces/collections.DictionaryCollectionModule.md (2102, 2023-12-17)
docs/interfaces/collections.DictionaryLike.md (1093, 2023-12-17)
docs/interfaces/collections.EnumerableLike.md (716, 2023-12-17)
docs/interfaces/collections.EnumeratorLike.md (1398, 2023-12-17)
docs/interfaces/collections.IndexedCollectionModule.md (4040, 2023-12-17)
docs/interfaces/collections.IndexedLike.md (414, 2023-12-17)
docs/interfaces/collections.KeyedCollection.md (1312, 2023-12-17)
docs/interfaces/collections.KeyedCollectionModule.md (8060, 2023-12-17)
docs/interfaces/collections.KeyedLike.md (815, 2023-12-17)
docs/interfaces/collections.MutableIndexedLike.md (499, 2023-12-17)
docs/interfaces/collections.MutableKeyedLike.md (787, 2023-12-17)
docs/interfaces/collections_Dictionary.DictionaryCollection.md (1240, 2023-12-17)
docs/interfaces/collections_Enumerable.EnumerableComputation.md (750, 2023-12-17)
docs/interfaces/collections_Enumerable.EnumerableModule.md (22754, 2023-12-17)
docs/interfaces/collections_Indexed.IndexedCollection.md (761, 2023-12-17)
docs/interfaces/collections_ReadonlyArray.ReadonlyArrayCollection.md (786, 2023-12-17)
docs/interfaces/collections_ReadonlyMap.ReadonlyMapCollection.md (1216, 2023-12-17)
docs/interfaces/collections_ReadonlyObjectMap.ReadonlyObjectMapCollection.md (1391, 2023-12-17)
docs/interfaces/computations.Computation.md (1222, 2023-12-17)
docs/interfaces/computations.PureComputationModule.md (6258, 2023-12-17)
docs/interfaces/concurrent.ContinuationContextLike.md (552, 2023-12-17)
... ...
# Reactive JS:
Fast modern reactive Javascript programming library.
[![NPM Version](https://img.shields.io/npm/v/@reactive-js/core.svg)](https://npmjs.com/package/@reactive-js/core) [![License](https://img.shields.io/npm/l/@reactive-js/core.svg)](https://npmjs.com/package/@reactive-js/core) [![Coverage Status](https://coveralls.io/repos/github/bordoley/reactive-js/badge.svg?branch=master)](https://coveralls.io/github/bordoley/reactive-js?branch=master) ![Build Status](https://github.com/bordoley/reactive-js/actions/workflows/build.yml/badge.svg)
## Platform Support
ReactiveJS is an isomorphic library which supports all modern ecmascript platforms including [Node.js](https://nodejs.org/) (v16 and up), [Deno](https://deno.land/), and modern browsers.
## Installing
### NPM JS
Reactive JS can be added to your npm based project using the [@reactive-js/core](https://www.npmjs.com/@reactive-js/core) packages.
```
yarn add @reactive-js/core
```
### ES6 Modules
Both Ecmascript and Typescript modules that may be directly imported into your project are available in the [mod](./mod) directory of this repo. These modules are all [Deno](https://deno.land/) compatible. We recommend referencing specifically tagged releases of these files in your projects.
## Example Usage
```typescript
import * as Observable from "@reactive-js/core/Observable";
import {
SideEffect,
bindMethod,
incrementBy,
pipe,
returns,
} from "@reactive-js/core/functions";
import * as Scheduler from "@reactive-js/core/Scheduler";
import {
DisposableLike_dispose,
SchedulerLike_schedule,
} from "@reactive-js/core/types";
const scheduler = Scheduler.createHostScheduler();
const subscription = pipe(
Observable.generate(incrementBy(1), returns(0)),
Observable.delay(1),
Observable.throttle(2000),
Observable.map(x => `${x}`),
Observable.forEach(x => console.log(x)),
Observable.subscribe(scheduler),
);
scheduler[SchedulerLike_schedule](
bindMethod(subscription, DisposableLike_dispose) as SideEffect,
{ delay: 20000 },
);
```
近期下载者:
相关文件:
收藏者: