mitt

v2.0.0
Tiny 200b functional Event Emitter / pubsub.
events eventemitter pubsub

testonly

mocha --require esm --require ts-node/register test/**/*.js

lint

eslint src test --ext ts --ext js

test

tsc src/index.ts --noEmit && npm run lint && npm run testonly

bundle

microbundle

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 tag $npm_package_version && git push && git push --tags && npm publish

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 5/26/2020

Downloads

Maintainers