
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
github.com/aculclasure/weather
Go package that provides a client for interacting with the current weather API hosted by OpenWeather. It provides some basic measurements of current weather for a given location.
You will need to create an OpenWeather account and API key. See their getting started guide for help on how to do this. Once you have the API key, it should be set as the environment variable OPENWEATHER_API_KEY
.
Mac/Linux
$ cd cmd/weather
$ go run main.go -h
USAGE: weather [-units={standard|metric|imperial}] <location>
-units string
the units to use, one of: standard, metric, imperial (default "imperial")
$ OPENWEATHER_API_KEY=<YOUR-API-KEY> go run main.go --units=metric london
overcast clouds, 9.21 C, humidity 46%
Windows Powershell
PS ${env:OPENWEATHER_API_KEY}=<YOUR-API-KEY>
PS cd cmd\weather
PS go run main.go --units=metric london
overcast clouds, 9.21 C, humidity 46%
FAQs
Unknown package
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
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.