
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Time manipulation library: Control and modify time effortlessly for testing, animations, or creative projects.
Time manipulation library for JavaScript. Control and modify time effortlessly for testing, animations, or creative projects.
npm i time-titan
via yarn:
yarn add time-titan
import TimeTitan from 'time-titan';
const titi = new TimeTitan();
// Freeze time
titi.freeze();
// Unfreeze time
titi.unfreeze();
// Set a specific timestamp
titi.setTime(1700000000000);
// Jump forward or backward in time
titi.warp(10000); // Move 10 seconds ahead
// Accelerate time (2x speed)
titi.accelerate(2);
// Decelerate time (0.5x speed, half-speed)
titi.decelerate(0.5);
// Reset time to normal behavior
titi.reset();
// Mock a specific date
titi.mockDate('2025-12-31T23:59:59Z');
// Pause and resume time
titi.pause();
titi.resume();
// Loop time between two timestamps
titi.loop(1700000000000, 1700000100000, 2);
// Save and restore time checkpoints
const checkpoint = titi.saveCheckpoint();
titi.restoreCheckpoint(checkpoint);
freeze()Stops time at the current moment, making Date.now() return the same value until unfreezed.
unfreeze()Resumes normal time flow.
setTime(timestamp)Overrides Date.now() with a fixed timestamp.
warp(milliseconds)Moves time forward or backward by the specified number of milliseconds.
accelerate(factor)Makes time run faster by a given multiplier (e.g., 2 makes time run twice as fast).
decelerate(factor)Slows down time by a given fraction (e.g., 0.5 makes time run at half speed).
reset()Restores Date.now() to its normal behavior.
mockDate(dateString)Overrides the system date completely to a specific value.
pause()Temporarily stops time.
resume()Resumes time from where it was paused.
loop(start, end, speed)Loops time between two points at a custom speed, useful for animations and simulations.
saveCheckpoint()Saves the current timestamp as a checkpoint.
restoreCheckpoint(checkpoint)Restores time to a previously saved checkpoint.
FAQs
Time manipulation library: Control and modify time effortlessly for testing, animations, or creative projects.
We found that time-titan demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.