Hasty Briefsbeta

Bilingual

Show HN: JavaScript PubSub in 163 Bytes

a year ago
  • #javascript
  • #pubsub
  • #minimalism
  • Pico-pubsub is the smallest PubSub library with zero dependencies, only 149 bytes.
  • Designed with JS13K games in mind, aiming for minimal size.
  • Features include subscription and publication functions with event handling.
  • Comparison with other libraries: nano-pubsub (194b) and tiny-pubsub (401b).
  • Optional customization available, though it increases size slightly.
  • Future plans may include TypeScript support.