Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
parse-coordinates
Advanced tools
Parse coordinate strings.
##Synopsis
var latLng = require('parse-coordinates');
var coords = latLng('-80.21, 21.32');
// => [-80.21, 21.32]
var coords = latLng('-80.21, 21.32');
// => [-80.21, 21.32]
The function returned parses a comma separated latitude and longitude pair and returns them as an array.
Latitude is validated to range from -90 to 90. Longitude value is validated to range from -180 to 180.
Leading and trailing space are tolerated in the string, as well as around the comma.
If the parsing fails for any reason, null is returned instead of the array.
Mark Stosberg <mark@rideamigos.com>
Forked from to-coordinates, which lacked validation of the number coordinates as well as the valid lat/lng value ranges.
MIT
FAQs
parse coordinate strings
The npm package parse-coordinates receives a total of 4 weekly downloads. As such, parse-coordinates popularity was classified as not popular.
We found that parse-coordinates demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.