2.0.1 • Published 12 months ago

@tobes31415/basic-observables v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Basic-Observables

A lightweight implementation of the observable pattern.

This is meant to cover many of the common needs so that you don't always need to reach for larger libraries at the start. The syntax is compatible with a particularly well know asynchrounous event library, so when your application grows to the point you need all those extra features you can seamlessly transition without having to rewrite your code, just change your imports.

View API Docs

Installation

npm install --save @tobes31415/basic-observables

Basic Useage

import { subject } from "@tobes31415/basic-observables";

const event = new Subject<number>();
event.subscribe(value => console.log("The event happened", value));

event.next(123);
// "The event happened", 123

Thank you

Big thank you to Macadamian Technologies for donating time towards this open source project :-)

2.0.1

12 months ago

2.0.0

1 year ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago