A setTimeout alternatives for browser based on requestAnimationFrame method
Install package
npm install set-timeout2
Install devependecies and build library
-
Install dependencies
npm install
-
Run and test in developer environment
npm run run-dev
-
Build non-minified version of the library
npm run build-dev
-
Build library and use in production
npm run build-prod
You will find the library in
dist
folder -
Update or generate api doc
npm run generate-doc
-
Do benchmark
npm run benchmark