1,236 packages matching “Date.now”
date-now
v1.0.1 · 12 years ago
A requirable version of Date.now()
No known vulnerabilities
jest-mock-now
v1.3.0 · 6 years ago
Date.now() as deterministic Jest mock function.
No known vulnerabilities
@thi.ng/timestamp
v1.1.47 · 4 hours ago
Timestamp getter wrapping (in order of preference) `process.hrtime.bigint()`, `performance.now()` or `Date.now()`
No known vulnerabilities
time-now
v0.2.1 · 12 years ago
Returns a timestamp using Performance.now or Date.now
No known vulnerabilities
@ljharb/now
v1.0.1 · 2 months ago
The current time in milliseconds, from the most precise monotonic clock available (`performance.now` → `process.hrtime` → `Date.now` → `new Date().getTime()`), for measuring elapsed time.
No known vulnerabilities
@dudousxd/nestjs-durable-eslint-plugin
v0.4.1 · 1 month ago
ESLint rule: flag non-deterministic calls (Date.now, Math.random, …) inside a @Workflow run
No known vulnerabilities
@flemist/time-controller
v1.0.4 · 10 months ago
setTimeout and Date.now() mock for fast testing
No known vulnerabilities
fake-timers
v0.1.2 · 7 years ago
Fake performance.now and Date.now
No known vulnerabilities
date-preset
v1.1.14 · 4 years ago
```typescript const nowTime = Date.now(); const endTime = end_date.getTime();
No known vulnerabilities
jest-time-helpers
v1.1.0 · 6 months ago
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)
No known vulnerabilities
unique-id-generator
v1.0.1 · 9 years ago
utility to generate unique ID based on Date.now()
No known vulnerabilities
grunt-bust-cache-variable
v0.2.0 · 7 years ago
Bust static assets from the cache using date.now(). Can also filter a specific file to be cache busted.
No known vulnerabilities
grunt-bust-my-cache
v0.2.2 · 12 years ago
Bust static assets from the cache using date.now(). Can also filter a specific file to be cache busted.
No known vulnerabilities
now-immediate
v1.0.0 · 10 years ago
Package provide function, that returns timestamp in ms (like `Date.now()`).
No known vulnerabilities
@amashukov/eslint-plugin-mess-detector
v0.2.0 · 3 months ago
ESLint plugin that fails the build on low-signal code patterns: inline narration, suppression directives, defensive nullish guards, tautological JSDoc, banal error wrappers, env branching, direct Date.now, type-only test assertions, TODO markers.
No known vulnerabilities
@adonis-agora/durable-eslint-plugin
v0.2.2 · 6 days ago
ESLint rules enforcing workflow determinism for @adonis-agora/durable — flags Date.now()/Math.random()/new Date()/crypto.randomUUID() inside workflow bodies. Part of the Agora ecosystem.
No known vulnerabilities
@slime/stopwatch
v1.3.2 · 2 years ago
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().
No known vulnerabilities
date-faker
v1.3.0 · 5 years ago
Package overriding what the now ( new Date(), Date.now() ) is in JS. It allows to manually change current date with `moment.js` like syntax.
No known vulnerabilities
@moznion/eslint-plugin-injected-time
v0.0.3 · 1 month ago
An ESLint and oxlint plugin that forbids ambient Date.now() in your logic and pushes you to inject the current time as a parameter, for deterministic and testable code.
No known vulnerabilities
tsnow
v1.1.2 · 9 years ago
Date.now polyfill from Tween.js ported to TS
No known vulnerabilities