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-client@bel0v/graphite@beland/colyseus.js@canopy-pte-ltd/canopy-toolkit@payping/sdk@payping/utils@pbscript/corehistree-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@israel-lpz/datepicker5d-chess-renderer@hakkei/dfu-handler@hakkei/webdfu@agentflow/core@adoptai/sdk@ee-fe/msgio@cryptkeeperzk/providers@cosminv6u/logux-serversse-feed@buildwithlayer/chatxwmwebext-bridgeuse-optimistic-update@logux/client@logux/core@logux/redux@logux/server@logux/vuex@mycelium-ethereum/swaps-keepers@nethergames/api@nbai/nbmap-gl-drawer@nanostores/query@mjstahl/stated@mojoactive/swatches@khainh/crx-bridge@klevn/solid-router@kb-sanity/proto-kb-plugin@putdotio/socket-client@redia-as/libry-universal-wayfinding-maps-sdk@recogito/annotorious-supabase@rivet-gg/plugin-colyseus-javascript@owen_ml/tlsync@parcnet-js/app-connector@remirror/extension-positioner@remirror/extension-react-component
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

4 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

5 years ago

5.1.6

5 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

6 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