1.2.1 • Published 7 years ago

zeng.js v1.2.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

About zeng.js

The name comes from the DreamWorks Animation's movie. Mr Zeng is a supporting protagonists in the Kung Fu Panda, is a palace servant too. what does he do ?

as zeng's quote:

I'm just the messenger.

zeng.js simply make a communication between different tabs or windows. is a mini javascript library without any else frameworks. only 70+ lines.

Install

npm install zeng.js

How To Use

emit event in the one page

import zeng from 'zeng.js'

zeng.emit('EVENT_NAME', arg1, arg2, ...)

receive event in other pages

zeng.on('EVENT_NAME', (arg1, arg2, ...) => {
  // do something
})

online demo: https://mblur.com/demos/zeng/

Browser Support

modern browsers.

1.2.1

7 years ago

1.2.0

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago