@enea-entertainment/runners

1.0.1 • Public • Published

Runners

Santa's little helper

Dependency: @enea-entertainment/runner


Installation

npm install --save-dev @enea-entertainment/runners

NPM


Usage example

import { createRunners, destroyRunners } from '@enea-entertainment/runners';

// will create runners object with remove and update Runner(s)
// notice number 2 after '|' - it means update runner has 2 arguments
this.runners = createRunners({
    remove: 'onRemove',
    update: 'onUpdate|2'
});

// dispatch
this.runners.remove.dispatch();
this.runners.update.dispatch(x, y);

// will detach all listeners from update and remove runners
destroyRunners(this.runners);

License

MIT, see LICENSE for details.

Readme

Keywords

Package Sidebar

Install

npm i @enea-entertainment/runners

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3.41 kB

Total Files

4

Last publish

Collaborators

  • enea-entertainment