New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

reflexus

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reflexus

The observers based predictable state changes for javascript apps

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Reflexus

=========================

Predictable state managment library, based on observers. It's basically a lightweight library on top of super awesome most.js.

Installation

npm install reflexus

or

yarn add reflexus

Usage

Reflexus has two building blocks: the sources and the main function.
Sources provide incoming event stream and allow to listen with convinient Reflexus.sensor function. Any trigger or side effectfull action is created, using Reflexus.trigger function.

To start application you need to supply main implementation to the Reflexus.run

Example:


const ws = Reflexus.sensor(websokets('ws://localhost:4000'))
const tick = Reflexus.trigger((event) => console.log(event))
const main = (sources) => {
  return {
     log: sources.log.merge(sources.ws)
  }
}

const sources = {
  ws: ws,
  log: tick
}

Reflexus.run(main,  sources)

Tests

npm test or yarn test

Keywords

observers

FAQs

Package last updated on 19 Jun 2017

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