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

time-cluster

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

time-cluster

clusters objects into timeframes

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

TimeCluster

Description

It might occur to you that you have a lot of timestamped objects that you want to cluster.

Features:

  • You pass a folder name and receive image information of all the visual files that can be found in the folder and its subdirectories
    // you can embed the file via node.js require command 
	var TimeCluster = require("./lib/timeCluster.js"); 
  • then you define an object and pass an array of timestamped objects
	var x = new TimeCluster(list);
  • you can specify a timframe, like this:
	var x = new TimeCluster(list, "day"); // valid calls are "minute", "hour", "day", "week", "year"
  • and you can also specify the field which contains the timestamp
	var x = new TimeCluster(list, "day", "date");  // default is "time"	
  • The functions returns an array of clustered objects

FAQs

Package last updated on 21 Sep 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