kefir

所属分类:TypeScript编程
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-03-12 06:08:17
上 传 者sh-1993
说明:  JavaScript的 React编程库
(A Reactive Programming library for JavaScript)

文件列表:
.flowconfig (111, 2023-03-11)
.mocharc.json (69, 2023-03-11)
.npmignore (185, 2023-03-11)
.prettierrc (117, 2023-03-11)
Kefir-with-bg.svg (2751, 2023-03-11)
Kefir.svg (2632, 2023-03-11)
LICENSE.txt (1085, 2023-03-11)
bacon-vs-kefir-api.md (10684, 2023-03-11)
bower.json (683, 2023-03-11)
changelog.md (16577, 2023-03-11)
configs/ (0, 2023-03-11)
configs/docs.js (450, 2023-03-11)
configs/rollup.dev.js (474, 2023-03-11)
configs/rollup.esm.js (125, 2023-03-11)
configs/rollup.prod.js (225, 2023-03-11)
deprecated-api-docs.md (3562, 2023-03-11)
docs-src/ (0, 2023-03-11)
docs-src/descriptions/ (0, 2023-03-11)
docs-src/descriptions/about-observables.pug (877, 2023-03-11)
docs-src/descriptions/active-state.pug (1679, 2023-03-11)
docs-src/descriptions/convert.pug (1703, 2023-03-11)
docs-src/descriptions/create.pug (8343, 2023-03-11)
docs-src/descriptions/current-in-streams.pug (3781, 2023-03-11)
docs-src/descriptions/emitter-object.pug (1129, 2023-03-11)
docs-src/descriptions/errors.pug (1794, 2023-03-11)
docs-src/descriptions/examples.pug (6188, 2023-03-11)
docs-src/descriptions/interop.pug (3769, 2023-03-11)
docs-src/descriptions/intro.pug (1740, 2023-03-11)
docs-src/descriptions/main-methods.pug (5920, 2023-03-11)
docs-src/descriptions/multiple-sources.pug (18624, 2023-03-11)
docs-src/descriptions/one-source.pug (27072, 2023-03-11)
docs-src/descriptions/two-sources.pug (6522, 2023-03-11)
docs-src/images/ (0, 2023-03-11)
docs-src/images/stream-and-property.png (12692, 2023-03-11)
docs-src/includes/ (0, 2023-03-11)
... ...

# Kefir Kefir — is an Reactive Programming library for JavaScript inspired by [Bacon.js](https://github.com/baconjs/bacon.js) and [RxJS](https://github.com/Reactive-Extensions/RxJS) with focus on high performance and low memory usage. For docs visit [kefirjs.github.io/kefir](http://kefirjs.github.io/kefir). See also [Deprecated API docs](https://github.com/kefirjs/kefir/blob/master/deprecated-api-docs.md). [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/kefirjs/kefir/blob/master/LICENSE.txt) [![npm version](https://img.shields.io/npm/v/kefir.svg?style=flat)](https://www.npmjs.com/package/kefir) [![Build](https://github.com/kefirjs/kefir/actions/workflows/node.js.yml/badge.svg)](https://github.com/kefirjs/kefir/actions/workflows/node.js.yml) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/pozadi/kefir?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) # Installation Kefir available as NPM and Bower packages, as well as simple files download. ### NPM ```sh npm install kefir ``` ### Bower ```sh bower install kefir ``` ### Download See [downloads](https://kefirjs.github.io/kefir/#downloads) section in the docs. Also available on [jsDelivr](http://www.jsdelivr.com/#!kefir). # Browsers support We don't support IE8 and below, aside from that Kefir should work in any browser. ## [Flow](https://flowtype.org/) The NPM package ships with Flow definitions. So you can do something like this if you use Flow: ```js // @flow import Kefir from 'kefir' function foo(numberStream: Kefir.Observable) { numberStream.onValue(x => { // Flow knows x is a number here }) } const s = Kefir.constant(5) // Flow can automatically infer the type of values in the stream and determine // that `s` is of type Kefir.Observable here. foo(s) ``` # Development ```sh npm run prettify # makes source code pretty (you must run it before a PR could be merged) npm run build-js # builds js bundlers npm run test # runs all the checks npm run test-only # runs only unit tests without other checks npm run test-debug # runs tests with a chrome inspector connected to the node process npm run build-docs # builds the documentation html file ```

近期下载者

相关文件


收藏者