new_day_event

1.0.2 • Public • Published

New day event

Very simple library that can help you to now if new day is started

  • Npm installing:
    npm i new_day_event
    import from node_modules
    import 'new_day_event'

  • Installing without npm:
    git clone https://github.com/Volizik/new_day_event.git
    and inside your project add this line before your own script tag
    <script src="path/to/new_day_event/directory"></script>

  • Usage:

document.addEventListener('new-day', function() {
    alert('New day is started!')
});

Warning! Only for client side.

Readme

Keywords

Package Sidebar

Install

npm i new_day_event

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

1.7 kB

Total Files

4

Last publish

Collaborators

  • volizik