sigs

1.2.0 • Public • Published

Sigs - Signals and Slots for JavaScript

Simple signals and slots system inspired from Qt.

npm install sigs

Quick Example

var Signal = require('sigs');

//Create event
var onSomeEvent = new Signal();

//Connect some functions to event
onSomeEvent.connect(function(data){
    console.log("Data: ", data);
});

//Connect by function name
onSomeEvent.connect(console.log);


onSomeEvent.emit("HELLO");

Readme

Keywords

none

Package Sidebar

Install

npm i sigs

Weekly Downloads

0

Version

1.2.0

License

MIT

Last publish

Collaborators

  • ubrains