Socket
Book a DemoInstallSign in
Socket

interval-thunk

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

interval-thunk

setInterval thunk.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

interval-thunk Build Status

setInterval Thunk.

Install

$ npm install --save interval-thunk

Usage

var intervalThunk = require('interval-thunk');

var interval = intervalThunk(function(){
  console.log('meow');
})(5000);

^ // meows, every 5000ms once.

API

intervalThunk -> func -> delay

input

Required
Type: function

The function that has to be repeatedly executed.

delay (optional)

Type: Number in ms. Default: 0

delay for the interval function to wait before each call to func.

License

MIT © hemanth

Keywords

setInterval

FAQs

Package last updated on 25 Mar 2015

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