Socket
Book a DemoInstallSign in
Socket

timer-ref

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timer-ref

Save timer references to avoid interfering

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

NPM
version Build Status Dependencies Dev Dependencies

timer-ref

Usage

Modules like sinon and timekeeper can modify Date and timers which can lead to problems, if you are, for example, building a test runner. This modules simply caches the original objects, so you can use them even after modified.

In order to be effective, require this module as early as possible.

  • Date
  • setTimeout
  • clearTimeout
  • setInterval
  • clearInterval

Tests

$ npm install
$ npm test

Authors

License

The MIT License (see LICENSE)

FAQs

Package last updated on 07 Sep 2014

Did you know?

Socket

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.

Install

Related posts