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

tsd-web

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsd-web

spins up a server to receive time-series data via tcp streams and then graphs it in the browser via web-sockets

latest
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

NAME

tsd-web(3)

SYNOPSIS

Spin up a quick server to visualize time series data.

USAGE

Deadly simple. just specify where you want it and what keys it should care about.

var tsd = require('tsd-web');

tsd({
  http: 80,
  tcp: 9099
});

Write some dummy data to the socket (LINE DELIMITED!).

var net = require('net');
var x = 0;
var client = net.connect({ port: 9099 }, function() {

  function write(json) {
    client.write(JSON.stringify(json) + '\n');
  }
  
  setInterval(function() {

    x++;

    write({ key: 'hello',   value: (Math.random() + x) / 50 });
    write({ key: 'goodbye', value: (Math.random() + x) / 20 });
    write({ key: 'ohai', value: 1000 });
    write({ key: 'neat-stuff', value: (Math.random() + x) / 10 });

  }, 150);

});

WUT?

screenshot

TODO

This is a work in progress. Pull requests welcome.

  • Provide a way to flush the cache.

FAQs

Package last updated on 12 Mar 2013

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