{"library":"timemachine","type":"library","category":null,"description":"Timemachine is a JavaScript utility designed to facilitate testing of time-dependent applications by overriding the native `Date` object. The package is currently at version 0.3.2, with its last known publication being over six years ago, indicating an abandoned status. It provides a straightforward API to configure a specific date, timestamp, or a time offset, and can optionally simulate a continuously ticking clock, which is useful for testing dynamic time displays or intervals. A key differentiator for Timemachine is its broad compatibility, supporting global namespaces, RequireJS, CommonJS, and NodeJS environments, making it suitable for older or mixed JavaScript projects. Its core functionality involves directly monkey-patching the global `Date` constructor and its prototypes, allowing for precise control over time within test scenarios where time manipulation is critical.","language":"javascript","status":"abandoned","version":"0.3.2","tags":["javascript","time","date","override","overwrite","global","manipulation","testing","test"],"last_verified":"Wed May 27","install":[{"cmd":"npm install timemachine","imports":["const timemachine = require('timemachine');","import timemachine from 'timemachine';","<!-- In HTML: <script src=\"path/to/timemachine.js\"></script> -->\n// Then, use `timemachine.config(...)` globally."]},{"cmd":"yarn add timemachine","imports":[]},{"cmd":"pnpm add timemachine","imports":[]}],"homepage":null,"github":"https://github.com/schickling/timemachine","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/timemachine","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/timemachine/compatibility"}}