# <a href="http://kefirjs.github.io/kefir/"><img src="http://kefirjs.github.io/kefir/Kefir-with-bg.svg" width="60" height="60"></a> 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<number>) {
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<number> 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
```
没有合适的资源?快使用搜索试试~ 我知道了~
用于JavaScript的响应式编程库_JavaScript_Pug_下载.zip
共217个文件
js:181个
pug:17个
md:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 40 浏览量
2023-04-25
11:10:56
上传
评论
收藏 242KB ZIP 举报
温馨提示
用于JavaScript的响应式编程库_JavaScript_Pug_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
用于JavaScript的响应式编程库_JavaScript_Pug_下载.zip (217个子文件)
stylesheet.css 5KB
kefir.js.flow 11KB
.flowconfig 111B
.gitignore 101B
combine.js 18KB
index.js 15KB
skip-until-by.js 9KB
filter-by.js 8KB
take-until-by.js 8KB
throttle.js 8KB
transduce.js 7KB
flat-map.js 7KB
buffer-while-by.js 7KB
stream.js 7KB
property.js 6KB
debounce.js 6KB
zip.js 5KB
abstract-pool.js 5KB
flat-map-errors.js 5KB
combine.js 5KB
observable.js 5KB
flat-map-with-concurrency-limit.js 5KB
with-handler.js 5KB
buffer-with-time-or-count.js 5KB
flat-map-concat.js 5KB
kefir-stream.js 4KB
buffer-by.js 4KB
flat-map-first.js 4KB
test-helpers.js 4KB
from-event.js 4KB
to-property.js 4KB
flat-map-latest.js 4KB
combine.js 4KB
concat.js 4KB
to-promise.js 4KB
sliding-window.js 3KB
buffer-with-count.js 3KB
scan.js 3KB
skip-while.js 3KB
take-while.js 3KB
pool.js 3KB
merge.js 3KB
take-errors.js 3KB
buffer-while.js 3KB
skip.js 3KB
two-sources.js 3KB
diff.js 3KB
flatten.js 3KB
filter.js 3KB
skip-duplicates.js 3KB
take.js 3KB
filter-errors.js 3KB
release.js 2KB
delay.js 2KB
collections.js 2KB
sampled-by.js 2KB
es-observable.js 2KB
zip.js 2KB
from-promise.js 2KB
repeat.js 2KB
values-to-errors.js 2KB
errors-to-values.js 2KB
end-on-error.js 2KB
dispatcher.js 2KB
spy.js 2KB
log.js 2KB
changes.js 2KB
before-end.js 2KB
throttle.js 2KB
map.js 2KB
map-errors.js 2KB
flat-map.js 2KB
debounce.js 2KB
ignore-end.js 2KB
sugar.js 2KB
last.js 2KB
from-node-callback.js 2KB
ignore-errors.js 2KB
one-source.js 2KB
interop.js 2KB
buffer-with-time-or-count.js 1KB
ignore-values.js 1KB
static-land.js 1KB
with-interval.js 1KB
repeat.js 1KB
to-es-observable.js 1KB
kefir-observable.js 1KB
from-callback.js 1KB
vacuousObservables.js 1KB
buffer-while-by.js 1KB
property.js 1KB
from-es-observable.js 1KB
explicitType.js 1KB
buffer-by.js 1KB
functions.js 1KB
static-land.js 1003B
zip.js 1001B
delay.js 964B
filter.js 916B
diff.js 884B
共 217 条
- 1
- 2
- 3
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功