Skip to main content
100%

instructions

✓ Published0🌍 Public
Aalessioalex
Last edited Nov 22, 2014
Created on Nov 22, 2014

The example filters and displays earthquake records from a USGS CSV feed, showing only events near New Guinea with depths exceeding 80 kilometers. It uses a custom `FilterStream` transform in Node.js to process CSV-parsed data, logging matching entries to the console. The `csv-parser` and `bubble-stream-error` libraries handle parsing and error propagation, while commented-out code suggests optional output via `cli-table`.

AI-generated description

instructions

  • first install the dependencies:
npm i 
  • download file locally:
curl http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv > earthquakes.csv
  • run the example:
node example.js
ISC Licensed

Similar vizzes