Nonstick Pancake Maker

    intervarl

    0.1.0 • Public • Published

    a variable interval

    dynamically change your interval period

    Install

    npm install intervarl or component install marcelklehr/intervarl

    Usage

    var setInterval = require('intervarl').setInterval
     
    var interval = setInterval(function() {
      console.log('ShAZzAmM')
      if(interval.period < 20000) return interval.period = interval.period+1000
      interval.period = interval.period-1000
    }, 0)
     
    setTimeout(function() {
      interval.stop()
    }, 60000)

    License

    MIT

    Keywords

    none

    Install

    npm i intervarl

    DownloadsWeekly Downloads

    4

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • marcelklehr