@gamestdio/signals

Minimal Signal implementation for JavaScript.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
10May 1, 2018May 1, 2018Minified + gzip package size for @gamestdio/signals in KB

Readme

@gamestdio/signals

Light-weight, strongly-typed messaging system.

Usage

import { Signal } from "@gamestdio/signals";

let signal = new Signal();

signal.add((data) => {
    console.log(data.message);
});

signal.dispatch({ message: "hello signal!" });

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.