@merci-michel/mm-signal

1.0.0 • Public • Published

MM Signal

Usage

Basic

Basic example.

import Signal from 'mm-signal'

 const cb = function() {console.log("callback");};
 const signal = new Signal();
 signal.add(cb);
 signal.dispatch();

Build

To build the sources with babel in ./lib directory :

npm run build

Documentation

To generate the JSDoc :

npm run docs

To generate the documentation and deploy on gh-pages branch :

npm run docs:deploy

Testing

To run the tests, first clone the repository and install its dependencies :

git clone https://github.com/MM56/mm-signal.git
cd mm-signal
npm install

Then, run the tests :

npm test

To watch (test-driven development) :

npm run test:watch

For coverage :

npm run test:coverage

Readme

Keywords

none

Package Sidebar

Install

npm i @merci-michel/mm-signal

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • pqml
  • nikitaskar
  • jordandelcros
  • pfer
  • gpolguere