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

timestamped-visuals

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timestamped-visuals

creates timestamped clusters out of a given directory (including sub-directories)

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

TimestampedVisuals

creates a cluster of visual data, arranged by a given timeframe (day, month etc). The objects also contain exif information.

to install from npm, you write:

 	npm install timestamped-visuals 

You embed the library with a command like this:

 	TV = require('timestamped-visuals); 

To import the visual data and create an array of time clustered objects, you write:

	var x = new TV({
                path: "./../images",   // here you have to pass the path 
                filename: "image.json", // output file
                callback: done,
                timeframe: "day"
                });
  • the path parameter specifies the path where the images are located. Subfolders will also be scanned.
  • the filename specifies the output where the timestamped objects are written into. It should be *.json format
  • with the optional callback you can specify a callback function that receives the results, as a list of js objects.
  • with the timeframe parameter you define an ordering structure. For example 'day' will groop the files on a daily basis. Valid parameters are "minute", "hour", "day", "week", "month", "year"

In the examples folder you will find a sample that demonstrates a running example.

TimestampedVisuals works fine in conjunction with ClusterPainter

License

MIT

Copyright © 2015. Phalanstere.

Keywords

exif

FAQs

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