This package has been deprecated

Author message:

migrated to organization merci-michel: https://www.npmjs.com/package/@merci-michel/mm-signal

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

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i mm-signal

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • gpolguere