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

latlon-utils

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

latlon-utils

A JavaScript library for obtaining data from weather.gov and tidesandcurrents.noaa.gov public web services provided by NOAA

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Coordinate parsing and formating utility

This unfinished module provides basic formatting and parsing utility function for geographic coordinates.

Parse

    let str = '46.8523° N, 121.7603° W';
    let coordinates = LATLON.parse(str);

    console.debug(coordinates.latitude); // 46.8523
    console.debug(coordinates.longitude); // -121.7603

Format

    let str = LATLON.parse(46.8523, -121.7603);

    console.debug(str); // 46.852° N 121.760° W
    let str = LATLON.parse([46.8523, -121.7603]);

    console.debug(str); // 46.852° N 121.760° W
    let str = LATLON.parse({ lat: 46.8523, lon: -121.7603});

    console.debug(str); // 46.852° N 121.760° W

FAQs

Package last updated on 25 Mar 2025

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