Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henryruhs/rxjs-collection
RXJS enhanced Array, Map, WeakMap, Set and WeakSet
https://github.com/henryruhs/rxjs-collection
Last synced: about 2 months ago
JSON representation
RXJS enhanced Array, Map, WeakMap, Set and WeakSet
- Host: GitHub
- URL: https://github.com/henryruhs/rxjs-collection
- Owner: henryruhs
- License: other
- Created: 2022-08-19T16:31:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-27T21:36:08.000Z (about 2 months ago)
- Last Synced: 2024-10-28T01:42:04.338Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 62.5 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- fucking-awesome-angular - rxjs-collection - RxJS enhanced Array, Map, WeakMap, Set and WeakSet. (Table of contents / Third Party Components)
- awesome-angular - rxjs-collection - RxJS enhanced Array, Map, WeakMap, Set and WeakSet. (Table of contents / Third Party Components)
README
RXJS Collection
===============> RXJS enhanced Array, Map, WeakMap, Set and WeakSet.
[![Build Status](https://img.shields.io/github/actions/workflow/status/henryruhs/rxjs-collection/ci.yml.svg?branch=master)](https://github.com/henryruhs/rxjs-collection/actions?query=workflow:ci)
[![Coverage Status](https://img.shields.io/coveralls/henryruhs/rxjs-collection.svg)](https://coveralls.io/r/henryruhs/rxjs-collection)
[![NPM Version](https://img.shields.io/npm/v/rxjs-collection.svg)](https://npmjs.com/package/rxjs-collection)
[![License](https://img.shields.io/npm/l/rxjs-collection.svg)](https://npmjs.com/package/rxjs-collection)Installation
------------```
npm install rxjs-collection
```Usage
-----Each collection has been enhanced with `asObservable` and `{un}subscribe` alike methods:
```typescript
import { ReactiveMap } from 'rxjs-collection';const reactiveMap : ReactiveMap = new ReactiveMap();
// subscribe to mutations
reactiveMap.asObservable().subscribe(map => map.has(1));
reactiveMap.subscribe(map => map.has(1));// mutate the collection
reactiveMap.set(1, 1);// unsubscribe from mutations
reactiveMap.unsubscribe();
```Documentation
-------------Read the [documentation](https://henryruhs.gitbook.io/rxjs-collection) for a deep dive.