New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tgwf/greentrace-cli

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tgwf/greentrace-cli

A bit like traceroute, but for green internet. Libraries used in Greentrace

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by60%
Maintainers
2
Weekly downloads
 
Created
Source

Greentrace lib

The standalone library used by the GreenTrace App to show

  • where packets are hoping through the world when you make a request from your machine, based on the Geolite IP Database

  • which hops pass through infrastructure running on green energy, as listed by the Green Web Foundation

Usage

As a command line tool

This will run a traceroute, then print to STDOUT a GeoJSON file with coordinates for every IP address, as looked up in the GeoIP database.

npx greentrace --domain=yourdomain.com

Note: it's not fast. I'd welcome pointers on making this run faster, without losing too much info.

As a library

You can also run this as a library in a larger application. You can see this in use in the greentrace electron app, designed plot these hops on a map.

import GreenTrace from "@tgwf/greentrace-lib"

// return a Promise, that resolves to an array
const hops = await GreenTrace.trace(domainName)

// make this into something we can put on a map
const hopsAsgeoJSON = hops.toGeoJSON()

Licenses

There are two licenses, for the code and data. See the LICENSE file for details.

Keywords

FAQs

Package last updated on 08 Mar 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc