New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

flyd-timeinterval

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flyd-timeinterval

Records the time interval between consecutive values emitted from a stream.

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

flyd-timeInterval

Travis npm David David

Records the time interval between consecutive values emitted from a stream.

Signature

Stream -> Stream

Usage

import every from 'flyd-every';
import timeInterval from 'flyd-timeinterval';

const stream = every(INTERVAL),
      intervalStream = timeInterval(stream);

flyd.stream([intervalStream, stream], () => {
  console.log('Interval:', intervalStream().interval, ', Time:', intervalStream().time);
});

// Interval: 0 , Time: 1434814906566
// Interval: 200 , Time: 1434814906767
// Interval: 200 , Time: 1434814906967
// Interval: 200 , Time: 1434814907167
// Interval: 199 , Time: 1434814907366

Keywords

interval

FAQs

Package last updated on 30 Jun 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