mitt

v3.0.1
Tiny 200b functional Event Emitter / pubsub.
events eventemitter emitter pubsub

test

npm-run-all --silent typecheck lint mocha test-types

mocha

mocha test

test-types

tsc test/test-types-compilation.ts --noEmit --strict

lint

eslint src test --ext ts --ext js

typecheck

tsc --noEmit

bundle

microbundle -f es,cjs,umd

build

npm-run-all --silent clean -p bundle -s docs

clean

rimraf dist

docs

documentation readme src/index.ts --section API -q --parse-extension ts

release

npm run -s build -s && npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish
npm i mitt

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 7/4/2023

Downloads

Maintainers