Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/edbzn/mindspace-utils

This library provides TypeScript utilities for both Angular and React developers: hooks, rxjs, DI.
https://github.com/edbzn/mindspace-utils

Last synced: about 1 month ago
JSON representation

This library provides TypeScript utilities for both Angular and React developers: hooks, rxjs, DI.

Awesome Lists containing this project

README

        

[![npm version](https://badge.fury.io/js/%40mindspace-io%2Futils.svg)](https://badge.fury.io/js/%40mindspace-io%2Futils)
![GitHub package.json version](https://img.shields.io/github/package-json/v/thomasburleson/mindspace-utils)

# Mindspace Utilities

This library provides TypeScript utilities for both Angular and React developers. Click the links below to view the detailed README(s) for each technology item.


![image](https://user-images.githubusercontent.com/210413/68954891-8404a680-078a-11ea-826c-879faae54eed.png)

* [**`untilViewDestroyed()`** to auto-unsubscribe Observables in View Components](./lib/utils/src/lib/rxjs/README.md)




![image](https://user-images.githubusercontent.com/210413/68954901-8961f100-078a-11ea-8141-eac38ab21dab.png)

* [**`useInjectorHook()`** for fast DI lookups of singleton services](./lib/utils/src/lib/hooks/README.md)
* [**`useObservable()`** for 'Async pipe'-like functionality](./lib/utils/src/lib/hooks/README.md)




![image](https://user-images.githubusercontent.com/210413/68954909-8cf57800-078a-11ea-90db-df58987a9790.png)

* [**`makeInjector()`** for powerful, angular-like dependency injection](./lib/utils/src/lib/di/README.md)
* [**`switchCase()`** for functional API used to condense switch statements](./lib/utils/src/lib/misc/README.md)
* [Typescript Playground](http://bit.ly/2NPQob6)

----

### Installation

To easily use this library, just use **`npm install @mindspace-io/utils`**