# dothis **Repository Path**: mirrors_Jam3/dothis ## Basic Information - **Project Name**: dothis - **Description**: Call a function after a certain set of time or on a specific Date. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README dothis ====== [![browser support](https://ci.testling.com/jam3/dothis.png) ](https://ci.testling.com/jam3/dothis) You can use `dothis` to be able to call functions after a certain period of time (kind of like `setTimeout`) or on a specific date. ## Example ```javascript var dothis = require( 'dothis' ); // Using with a time dothis( function( offBy, percentage ) { console.log( 'Finished with time:', offBy, 'milliseconds late.' ); }) .in( 1000 ) // in one second .update( function( offBy, percentage ) { console.log( 'We\'re', percentage, 'done. Using time.' ) }); // Using with a date dothis( function( offBy, percentage ) { console.log( 'Finished with date:', offBy, 'milliseconds late.' ); }) .at( new Date( Date.now() + 1000 ) ) // use a date to represent in one second .update( function( offBy, percentage ) { console.log( 'We\'re', percentage, 'done. Using date.' ) }); ```