Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@typeheim/fire-rx
Advanced tools
FireRx extends RxJS with different useful features. Adds memory safety and garbage collection features to work with subjects and subscriptions, subjects that behave both like subjects and promises to support async/await and many more.
Install package
yarn add @typeheim/fire-rx
//or
npm -i @typeheim/fire-rx
FireRx consist of custom Observable types and additional features to work with observables.
FireRx adds custom observable types, like StatefulSubject that acts as ReplaySubject and Promise so that you can use async/await operators on it as well as regular Subject methods. Adds memory safety and garbage collection automatically calling unsubscribe on subscriptions.
import { StatefulSubject } from '@typeheim/fire-rx'
let subject = new StatefulSubject<number>()
subject.next(5)
await subject // returns 5
subject.next(6)
await subject // returns 6
subject.stop() // completes subject and unsubscribe all subscriptions
Read more about all custom observables...
FireRx provide set of features for garbage collection, like StopOnDestroy decorator for FireRx custom observables that extends Angular destructor(ngOnDestroy) or custom destructor (specified at decorator metadata) and stop specified observable.
class WithoutDestructor {
@StopOnDestroy()
valueSubject = new ValueSubject(1)
@StopOnDestroy()
statefulSubject = new StatefulSubject()
}
FAQs
RxJS on steroids
The npm package @typeheim/fire-rx receives a total of 3 weekly downloads. As such, @typeheim/fire-rx popularity was classified as not popular.
We found that @typeheim/fire-rx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.