Showing 1-20 of 1,067 packages
A requirable version of Date.now()
Date.now() as deterministic Jest mock function.
Timestamp getter wrapping (in order of preference) `process.hrtime.bigint()`, `performance.now()` or `Date.now()`
Returns a timestamp using Performance.now or Date.now
setTimeout and Date.now() mock for fast testing
Fake performance.now and Date.now
Bust static assets from the cache using date.now(). Can also filter a specific file to be cache busted.
Bust static assets from the cache using date.now(). Can also filter a specific file to be cache busted.
a stopwatch class utility for starting, pausing, resetting and getting elapsed time in milliseconds (ms), under the hood is just comparing timestamps with Date.now().
Package provide function, that returns timestamp in ms (like `Date.now()`).
```typescript const nowTime = Date.now(); const endTime = end_date.getTime();
Package overriding what the now ( new Date(), Date.now() ) is in JS. It allows to manually change current date with `moment.js` like syntax.
Helpers you can use in tests that relate to the passage of time (i.e. code that involves setTimeout, setInterval, new Date(), Date.now(), etc)
``` let ago = require('ytimeago') v = ago(Date.now() - 1000) // 1s v = ago(Date.now() - 1000, '') // just now v = ago(Date.now() - 60 * 1000) // 1m // 1 minute ago v = ago(Date.now() - 60 * 60 * 1000) // 1h // 1 hour ago v = ago(Date.now() - 24 * 60 * 60
utility to generate unique ID based on Date.now()
Performance timer based on performance.mark() and measure()
javascript implementation of querySelectorAll
A Promise-based Node.js client for the Apple device check API
react-native-md5 Demo
Get the quickest, most high-resolution timestamp possible in node or the browser