9.1.0 • Published 1 year ago

nanoevents v9.1.0

Weekly downloads
20,760
License
MIT
Repository
github
Last release
1 year ago

Nano Events

Simple and tiny event emitter library for JavaScript.

  • Only 108 bytes (minified and brotlied). It uses Size Limit to control size.
  • The on method returns unbind function. You don’t need to save callback to variable for removeListener.
  • TypeScript and ES modules support.
  • No aliases, just emit and on methods. No Node.js EventEmitter compatibility.
import { createNanoEvents } from 'nanoevents'

const emitter = createNanoEvents()

const unbind = emitter.on('tick', volume => {
  summary += volume
})

emitter.emit('tick', 2)
summary //=> 2

unbind()
emitter.emit('tick', 2)
summary //=> 2

  Made at Evil Martians, product consulting for developer tools.


Docs

Read full docs here.

vuex-logux@renito/shared@evilkiwi/hydra-streamlabs@evilkiwi/hydra-streamlabs-desktop@tnotifier/xjs@tnotifier/embed@tnotifier/hydra-streamlabs@tnotifier/hydra-streamlabs-desktop@tnotifier/obsaditya-super-sdk@infinitebrahmanuniverse/nolb-nan@annotorious/supabase@everything-registry/sub-chunk-2244@supertray/app-i18n@supertray/app-services@supertray/app-utils@supertray/uianycablecore-typeforktabby-auth-customer-portalweq8vue-bus-parkwsclstore-unitstarter-worldthree-freeform-controlsthree-jarvisthree-freeform-controls-pluginvue-flawless-modalvideomail-clienthistree-webext-bridgehlviewer.jshamoinputs-mediatorleast-recentmantle-weblogux-clientlogux-corelogux-serverlogux-server-nextlogux-sync@winter-love/wallet@webext-pegasus/transport@types/nanoevents@tldraw/sync-core@tldraw/sync@uems/micro-builder@turnbig/webext-bridge@unisat/bbn-wallet-connect@tnotifier/hydra@telnyx/video@telnyx/video-react-native@thechatshop/chat-widget@tinyanvil/cfw-easy-utils@zeriontech/hardware-wallet-connection@teds/reactaiffel-jupyter-kerneladitya-wrapperauth-customer-portal@pbscript/core@payping/sdk@payping/utils@powerhousedao/reactor-api@powerhousedao/reactor-localgame-menu-creatorg-emitter@tebexio/tebex.jsdynamic-styleguideeditroneq15electron-ipc-socketext-msgfederer5d-chess-renderer@canopy-pte-ltd/canopy-toolkit@camcortex/api@buildwithlayer/chat@bel0v/graphite@beland/colyseus.js@babylonlabs-io/bbn-wallet-connect@babylonlabs-io/wallet-connector@botpress/cognitivecapacitor-plugin-couchbase-litecallemcfw-easy-utilscapacitor-cblitecodespikey-webext-bridgecolyseus-mpcore-dayodarkchaincolyseus.jsderivable-devtoolsdocument-drivedfudfu-next@annotorious/core@annotorious/plugin-segment-anything@anycable/core@arconnect/webext-bridge@adoptai/sdk@agentflow/core@asap-devs/forms
9.1.0

1 year ago

9.0.0

2 years ago

8.0.0

2 years ago

7.0.0

3 years ago

7.0.1

3 years ago

6.0.2

4 years ago

6.0.1

4 years ago

6.0.0

5 years ago

5.1.13

5 years ago

5.1.12

5 years ago

5.1.11

5 years ago

5.1.10

5 years ago

5.1.9

5 years ago

5.1.8

5 years ago

5.1.7

6 years ago

5.1.6

6 years ago

5.1.5

6 years ago

5.1.4

6 years ago

5.1.3

6 years ago

5.1.2

6 years ago

5.1.1

6 years ago

5.1.0

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.0.3

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

3.0.0

6 years ago

4.0.0

6 years ago

2.0.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago