Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
local-openweathermap
Advanced tools
Javascript plugin to display weather on your website with OpenWeaterMap API
Readme
Javascript plugin to display weather on your website with OpenWeaterMap API.
You can specified JSON file or directly the JSON API of OpenWeatherMap.
npm install local-openweathermap
const weater = new Weather('.weather', {
weatherType: 'weather',
lang: 'fr',
cityId: '3009566',
units: 'metric',
appid: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx',
icoPath: 'images/',
icoFormat: 'svg',
icoWidth: '60',
icoHeight: '60',
});
weatherType: string
A string that define the type of weather, daily or forecast over a maximum of 5 days.
value: weather, forecast
default: forecast
appid: string
The OpenWeatherMap key
jsonPath: string
The path to a local json file
lang: string
OpenWeatherMap language option
default: en
cityId: integer
The id of the city. Must be found directly in the url after à search on https://openweathermap.org
units: string
OpenWeatherMap units format of temperature. Fahrenheit = imperial, Celsius = metric, Kelvin = standard
value: imperial, metric, standard
default: metric
icoPath: string
Path to the image folder, by default use OpenWeatherMap images.
default: https://openweathermap.org/img/w/
icoFormat: string
Format of the images
default: png
icoWidth: integer
Width attribute of the images
default: 50
icoHeight: integer
Height attribute of the image
default: 50
forecastDays: integer
In the case where you choose weatherType to forecast, indicates the number of days to be displayed
default: 3
FAQs
Javascript plugin to display weather on your website with OpenWeaterMap API
We found that local-openweathermap 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.