{"_id":"@alexfr26/timemachine","_rev":"1-d832a7f97a6fd39c4cbaeebedec45469","name":"@alexfr26/timemachine","dist-tags":{"latest":"0.4.0"},"versions":{"0.3.2":{"name":"@alexfr26/timemachine","version":"0.3.2","description":"Test your time critical app by overriding the native Javascript Date function","main":"timemachine.js","type":"index.d.ts","directories":{"test":"test"},"scripts":{"test":"grunt test --verbose","build":"grunt build","bump":"grunt bump"},"repository":{"type":"git","url":"git+https://github.com/alexfr26/timemachine.git"},"keywords":["time","date","override","overwrite","global","manipulation","testing","test"],"author":{"name":"Johannes Schickling","email":"schickling.j@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/alexfr26/timemachine/issues"},"devDependencies":{"coveralls":"~2.12.0","grunt":"^1.6.1","grunt-bump":"~0.8.0","grunt-cli":"~1.2.0","grunt-contrib-copy":"~1.0.0","grunt-contrib-jshint":"~1.1.0","grunt-contrib-uglify":"~2.2.0","grunt-karma":"~2.0.0","jasmine-core":"~2.5.2","karma":"~1.5.0","karma-coverage":"~1.1.1","karma-jasmine":"~1.1.0","karma-phantomjs-launcher":"~1.0.4","load-grunt-tasks":"~3.5.2","phantomjs":"~2.1.7"},"gitHead":"91ceb4bac73f2aec848f7905057cd3e34f90bd14","homepage":"https://github.com/alexfr26/timemachine#readme","_id":"@alexfr26/timemachine@0.3.2","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-7fWz65Re1IaXt7ddH6EOF/nK/AnH9/jDRSVp0zgOeHCgSrLIoFdw2Dk8DycWG9UPtwwYB5oOmQpbp7SHl7vDPw==","shasum":"b9bd850a604cf45faf5afe42f052e3fa2a63eb62","tarball":"https://registry.npmjs.org/@alexfr26/timemachine/-/timemachine-0.3.2.tgz","fileCount":12,"unpackedSize":20366,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD87QxPHcT3DRzbT3YPsG1zJKyCcXollNyrOalNa5IHKAIhANSTc7xTpm19jcnQ7OuGa6+hkd9gXxLXX4VhAuY7XvAg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCexoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQ7A//WPfZMR2PEDOJ6bfYOLLPEm/nnhLEVurODSrNBUwss+hMJngH\r\nV5gaDNV3WsjCl5cWubrKwOMiNm+yT/MfysB+dDT8SWTXcspRmH7zsxG12x+h\r\nKPo2SS0QvkgX4pMgxuK1Z0Fx9wWlAzT6CUaNkgiPCWzna3/Pp2PdZGFS7JXg\r\n5TM44cMMvMS+bKWFXfno75q2HA/z3lV+sczUi97hevQQH6F2lQqnfYOm++96\r\nHk3IoSkoEkhg49TJYkUgetKrf5VjnTnaCu3OhZ5KKyZz20amiCa8d9utzK+B\r\nSUaWVA9q7WSrfhrKtolg0zeRPOmfaYA58AG3PVUVvctC9ihiMxQXjyUNX3y/\r\nnsZOJQ/bct8/f39r+Dj2TAC5IQVn9X/rRcE90DoSlN+06IfFlxWAg0EmR29a\r\n3exo4/vs1JgqUHmbPz/Zszz12Cr6r2RdFvXn3lR//6HecNJHWLPsATZQCgZ4\r\nWFq3Bh341GViPuuCZtPV4YFcmXUYtnqebC46uFWChd0V/fVLFGaHydYrXsu9\r\niRyAFnH6zn2hbu/+0/9w2+21t10vNuAapBZzybnV4hJwRxQVFI+f/tOsnWhO\r\n3LDPrX1tKGm+zMxePoWprrpKROEQIY7wrEESy6ddjxyE92cToJV1wKtFN/Gt\r\nWjXsGt9vQv7bTmBU0F6ChEZhdHfl7xKPZI4=\r\n=S9IA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexfr26","email":"alex.fr26@yahoo.com"},"maintainers":[{"name":"alexfr26","email":"alex.fr26@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timemachine_0.3.2_1678371943833_0.4273478836749487"},"_hasShrinkwrap":false},"0.4.0":{"name":"@alexfr26/timemachine","version":"0.4.0","description":"Test your time critical app by overriding the native Javascript Date function","main":"timemachine.js","type":"index.d.ts","directories":{"test":"test"},"scripts":{"test":"grunt test --verbose","build":"grunt build","bump":"grunt bump"},"repository":{"type":"git","url":"git+https://github.com/alexfr26/timemachine.git"},"keywords":["time","date","override","overwrite","global","manipulation","testing","test"],"author":{"name":"Johannes Schickling","email":"schickling.j@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/alexfr26/timemachine/issues"},"devDependencies":{"coveralls":"~2.12.0","grunt":"^1.6.1","grunt-bump":"~0.8.0","grunt-cli":"~1.2.0","grunt-contrib-copy":"~1.0.0","grunt-contrib-jshint":"~1.1.0","grunt-contrib-uglify":"~2.2.0","grunt-karma":"~2.0.0","jasmine-core":"~2.5.2","karma":"~1.5.0","karma-coverage":"~1.1.1","karma-jasmine":"~1.1.0","karma-phantomjs-launcher":"~1.0.4","load-grunt-tasks":"~3.5.2","phantomjs":"~2.1.7"},"gitHead":"83d35689d4b071d199bf496ccdffa3739bff9f72","homepage":"https://github.com/alexfr26/timemachine#readme","_id":"@alexfr26/timemachine@0.4.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-tFXWK0Tu+5a8JlGOzv4CdsQDw6hzpWaBAuVw8F7ngHPSz/98Gus2NF5Ntcb5NVw6JO4C0hS5r+VW+RFbssugUg==","shasum":"c30145c95d36cd4c1a18d4b3ddaa7772f4b656b2","tarball":"https://registry.npmjs.org/@alexfr26/timemachine/-/timemachine-0.4.0.tgz","fileCount":12,"unpackedSize":20815,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTQF8FgLNe3SMHjVZSX4RQWfPF5EqZzaeoET453WWueQIgWtzSQE7CflmsHhwQ1AySZPs3+rKGrYcVHEbRPdv9j0g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDyVUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUnA/5ACR4BUQFjO4xtx0J2ed6pYBQ83nHZ23TXzRPBDbDz6INJMiv\r\neMswMqK5rOiDToAzOOlgLRwwziyIm3fU2kOvli2Xz19jbz/YBLvKqlAXBFUd\r\nI8in4i86e+uVdMbn2nehDmgBgaCFqAz4W15mRD+psv0JqSz0GKfS28S1s9Eg\r\nAZDyprBirlQLqIgdqDmR17fyiZwRs1tUDHCrvydXa7hmRK4ku4pSEeEl4Vnt\r\nUPyvjZduHLcj6nh9Zak8P8WRuBNHts3cC9YVjH+s9t3uTsKm8svjlke44iHC\r\ns3yf5BGFJCK63OGbXcWmZJwmcLRtTnjULZ9CDDA0Bo2RnSXVGm3FnSt+1G3J\r\nqbMlpS746jr8nio8Rsb9RXj1/p/tXFkwpzsCZVypIabQf+eboz8uJlyK+qS4\r\neITZc1jWVeDnaXtt4rDImKZ75m63lorvx5RUAuYkGxtXrHHYtp4YHqv0EM79\r\nnx+CaNZRBTW3pJrnjbh2pm5bhOsYPWkwYHfS5HaGe2KTxrPdA5whxdPfXrzg\r\n8vanDpgWhP8RYjJNBK3ddeSjaxKj3MrUY8fONFufAUGYtUUY6Il+OXPHRcTh\r\nkP1ks6ibbuRtlarSohK64bHapPmGlNf6aIFk6LG5ccOdnpB78v2cVYXn1c78\r\n0WE0w2q2jgSxIcl1ogB07ayA5QPEY/RhkTk=\r\n=hugt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexfr26","email":"alex.fr26@yahoo.com"},"maintainers":[{"name":"alexfr26","email":"alex.fr26@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timemachine_0.4.0_1678714195904_0.5965079627233194"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-09T14:25:43.716Z","0.3.2":"2023-03-09T14:25:43.990Z","modified":"2023-03-13T13:29:56.183Z","0.4.0":"2023-03-13T13:29:56.101Z"},"maintainers":[{"name":"alexfr26","email":"alex.fr26@yahoo.com"}],"description":"Test your time critical app by overriding the native Javascript Date function","homepage":"https://github.com/alexfr26/timemachine#readme","keywords":["time","date","override","overwrite","global","manipulation","testing","test"],"repository":{"type":"git","url":"git+https://github.com/alexfr26/timemachine.git"},"author":{"name":"Johannes Schickling","email":"schickling.j@gmail.com"},"bugs":{"url":"https://github.com/alexfr26/timemachine/issues"},"license":"MIT","readme":"timemachine [![Build Status](https://travis-ci.org/schickling/timemachine.png?branch=master)](https://travis-ci.org/schickling/timemachine)\n===========\n\nTest your time-dependent app by monkey patching the `Date` function and **overriding your system time**. Timemachine is compatible with global namespaces, RequireJS, CommonJS and NodeJS.\n\n## Installation\n\n### Bower\n```sh\n$ bower install timemachine\n```\n\n### NPM\n```sh\n$ npm install timemachine\n```\n\n## Usage\n\n### Config\n```js\ntimemachine.config({\n  dateString: 'December 25, 1991 13:12:59'\n});\n\nconsole.log(new Date()); // December 25, 1991 13:12:59\n```\n\nParameter \t\t| Description\t\t\t\t\t\t\t\t\t\t| Default\n---\t\t\t\t| ---\t\t\t\t\t\t\t\t\t\t\t\t| ---\n`dateString`\t| Date you want set as a string\t\t\t\t\t\t| `Thu, 01 Jan 1970 00:00:00 GMT`\n`timestamp`\t\t| Date you want set as a timestamp\t\t\t\t\t| `0`\n`difference`\t| Time offset in milliseconds\t\t\t\t\t\t| `0`\n`tick`\t\t\t| Whether the system clock should continue ticking\t| `false`\n`keepTime`\t\t| Whether the system time should be kept\t\t\t| `false`\n\n### Reset\n```js\ntimemachine.reset();\nconsole.log(new Date()); // Your real system time\n```\n","readmeFilename":"README.md"}