Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/edbzn/mindspace-utils
- Owner: edbzn
- Created: 2019-11-29T12:23:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-23T11:24:50.000Z (almost 5 years ago)
- Last Synced: 2024-10-18T09:14:07.663Z (2 months ago)
- Homepage:
- Size: 210 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`**