nb-event-service

v1.9.5
An universal event (emitter) service for Browser / Node
event javascript node

prepare

npm run build && npm run test

test

ava

coverage

nyc ava

build

npm run build:umd && npm run build:alias:umd && npm run build:cjs && npm run build:alias:cjs

build:umd

TARGET=umd rollup -c

build:cjs

TARGET=cjs rollup -c

build:alias:umd

NODE_ENV=alias TARGET=umd rollup -c

build:alias:cjs

NODE_ENV=alias TARGET=cjs rollup -c

test:browser

node ./tests/fixtures/browser.js

test:basic

DEBUG=nb-event-service* ava ./tests/basic.test.js

test:ms

DEBUG=nb-event-service* ava ./tests/map-set.test.js

test:once

DEBUG=nb-event-service* ava ./tests/once-problem.test.js

test:alias

DEBUG=nb-event-service* ava ./tests/alias.test.js

test:only

DEBUG=nb-event-service* ava ./tests/only.test.js

test:oo

DEBUG=nb-event-service* ava ./tests/only-once.test.js

test:replace

DEBUG=nb-event-service* ava ./tests/replace.test.js

test:lazy

DEBUG=nb-event-service* ava ./tests/lazy.test.js

test:watch

DEBUG=nb-event-service* ava ./tests/watch.test.js

test:array

DEBUG=nb-event-service* ava ./tests/array-result.test.js

test:suspend

DEBUG=nb-event-service* ava ./tests/suspend.test.js
npm i nb-event-service

Metadata

  • ISC
  • Whatever
  • Joel Chu
  • released 3/7/2020

Downloads

Maintainers