Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tobes31415/basic-observables

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tobes31415/basic-observables

A lightweight implementation of the Observable pattern

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
142
decreased by-11.25%
Maintainers
1
Weekly downloads
 
Created
Source

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 :-)

Keywords

FAQs

Package last updated on 17 May 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc