Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wy-water

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wy-water

The `wy-water` package provides functionality to fetch and process water data, specifically river flow data from the USGS API for sites in Wyoming. This package helps developers extract river metrics like current temperature, flow, gage height, and dissol

  • 1.6.6
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

wy-water

The wy-water package provides functionality to fetch and process water data, specifically river flow data from the USGS API for sites in Wyoming. This package helps developers extract river metrics like current temperature, flow, gage height, and dissolved oxygen values. It also offers functionality to fetch daily river metrics and instantaneous river metrics.

Main Features:

  1. Fetch Data: Retrieve data from specific endpoints using the base USGS API.
  2. Extract Current Metrics: Obtain current metrics for various river sites in Wyoming.
  3. Daily River Metrics: Retrieve and process metrics taken daily.
  4. Instantaneous River Metrics: Retrieve and process metrics taken instantaneously.

Usage:

Importing the module:
import {
  getRiverFlowData,
  getWyomingSites,
  getDailyRiverMetrics,
  getInstantaneousRiverMetrics,
} from "wy-water";

Fetching current metrics for Wyoming sites:

const wyomingSitesData = await getWyomingSites();

Fetching daily river metrics:

const dailyMetrics = await getDailyRiverMetrics(siteCode, period);

Fetching instantaneous river metrics:

const instantaneousMetrics = await getInstantaneousRiverMetrics(siteCode, period);

Data Types:

  • Value: Represents a basic metric containing value, unit, and the time when it was recorded.
  • MaxMinMean: Represents maximum, minimum, and mean values of a particular metric.
  • CurrentValue: Represents current values for temperature, flow, gage height, and dissolved oxygen for a site.
  • DailyValue: Represents daily metrics for streamflow, gage height, temperature, and dissolved oxygen.
  • InstantaneousValue: Represents instantaneous metrics for streamflow, gage height, temperature, and dissolved oxygen.

Please refer to types.ts for detailed type definitions and structure.

Contributing: If you wish to contribute to the wy-water package, please submit a pull request or open an issue for discussion.

FAQs

Package last updated on 10 Sep 2023

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