Thanks to visit codestin.com
Credit goes to github.com

Skip to content

make a communication between different tabs or windows.

alienproX/zeng.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

make a communication between different tabs or windows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published