A tiny ponyfill for requestAnimationFrame.
Makes your app testable for just 100 B.
$ npm install micro-raf
const raf = require('micro-raf');
raf(() => console.log('Next frame!'));
Works in node and browsers.
Inspired by ainojs-requestframe which is no longer maintained.