next-thing

0.0.3 • Public • Published

next-thing

next-thing on NPM Standard JavaScript Style

Frame, tick, and idle functions for the browser.

Install

$ npm i next-thing --save

Use

import * as next from 'next-thing'
 
// runs in the next frame
next.frame(() => console.log('Next frame.'))
 
// runs in the next tick
next.tick(() => console.log('Next tick.'))
 
// runs when the browser is idle
next.idle(() => console.log('Next idle.'))

License

MIT. © 2017 Michael Cavalea

Readme

Keywords

none

Package Sidebar

Install

npm i next-thing

Weekly Downloads

12

Version

0.0.3

License

MIT

Last publish

Collaborators

  • callmecavs