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

@reactive-js/core

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reactive-js/core

Fast modern reactive Javascript programming library.

  • 0.123.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
249
decreased by-41.13%
Maintainers
1
Weekly downloads
 
Created
Source

Reactive JS:

Fast modern reactive Javascript programming library.

NPM Version License Coverage Status Build Status

Platform Support

ReactiveJS is an isomorphic library which supports all modern ecmascript platforms including Node.js (v16 and up), Deno, and modern browsers.

Installing

NPM JS

Reactive JS can be added to your npm based project using the @reactive-js/core packages.

yarn add @reactive-js/core

ES6 Modules

Both Ecmascript and Typescript modules that may be directly imported into your project are available in the mod directory of this repo. These modules are all Deno compatible. We recommend referencing specifically tagged releases of these files in your projects.

Example Usage

import * as Observable from "@reactive-js/core/concurrent/Observable";
import * as Enumerable from "@reactive-js/core/collections/Enumerable";
import {
  SideEffect,
  bindMethod,
  incrementBy,
  pipe,
  returns,
} from "@reactive-js/core/functions";
import * as HostScheduler from "@reactive-js/core/concurrent/HostScheduler";
import { SchedulerLike_schedule } from "@reactive-js/core/concurrent";
import { DisposableLike_dispose } from "@reactive-js/core/utils";

const scheduler = HostScheduler.create();

const subscription = pipe(
  Enumerable.generate(incrementBy(1), returns(0)),
  Observable.fromEnumerable({ delay: 1, delayStart: true }),
  Observable.throttle(2000),
  Observable.map(x => `${x}`),
  Observable.forEach(x => console.log(x)),
  Observable.subscribe(scheduler),
);

scheduler[SchedulerLike_schedule](
  bindMethod(subscription, DisposableLike_dispose) as SideEffect,
  { delay: 20000 },
);

Keywords

FAQs

Package last updated on 27 Jan 2024

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