simple-signal
Signals with less features
Last updated 9 years ago by theadam .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install simple-signal 
SYNC missed versions from official npm registry.

simple-signal

Example Usage

import Signal from 'simple-signal';

const signal = new Signal();

const handler = v => console.log(v);

signal.on(handler);

// Will log 'Simple!'
signal.emit('Simple!');

signal.off(handler);

signal.emit('This will not be logged!');

That is literally it.

Current Tags

  • 0.0.2                                ...           latest (9 years ago)

2 Versions

  • 0.0.2                                ...           9 years ago
  • 0.0.1                                ...           9 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (12)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE