@liuyunjs/timer
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

install


@npm: npm install @liuyunjs/timer -S

@yarn: yarn add @liuyunjs/timer

Quick


import Timer from '@liuyunjs/timer';

const timer = new Timer();

timer.setTimeout(() => console.log('hello world'), 1000);
timer.clearTimeout();

timer.setInterval(() => console.log('hello world'), 1000);
timer.clearInterval();

timer.rAF(() => console.log('hello world'));
timer.cAF();

Readme

Keywords

none

Package Sidebar

Install

npm i @liuyunjs/timer

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

19.6 kB

Total Files

10

Last publish

Collaborators

  • liuyunjs