Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
metoffice-fetch
Advanced tools
A simple package to fetch data from the [uk met office](https://metoffice.apiconnect.ibmcloud.com/metoffice/production/) API library.
A simple package to fetch data from the uk met office API library.
Just do
npm install metoffice-fetch
or
yarn add metoffice-fetch
import { FetchDailyData } from "metoffice-fetch";
const fetchData = async (latitude: number, longitude: number) => {
try {
const result = await FetchDailyData(
{
excludeParameterMetadata: true,
includeLocationName: false,
latitude,
longitude,
},
{
clientId: CLIENT_ID,
clientSecret: CLIENT_SECRET,
},
);
console.log(result.features[0].properties.timeSeries);
} catch (error) {
console.err(error);
}
};
Function | Return Type | Description |
---|---|---|
FetchHourlyData(params, headers) | Promise<MetOfficeResponse> | Fetches the hourly data |
FetchThreeHourlyData(params, headers) | Promise<MetOfficeResponse> | Fetches the Three Hourly data |
FetchDailyData(params, headers) | Promise<MetOfficeResponse> | Fetches the Daily Data |
The inputs param for all these functions are the same:
params: {
excludeParameterMetadata?: boolean;
includeLocationName?: boolean;
latitude: number;
longitude: number;
},
headers: {
clientId: string;
clientSecret: string;
}
Ali Rezaee nlndipi@hotmail.com
FAQs
A simple package to fetch data from the [uk met office](https://metoffice.apiconnect.ibmcloud.com/metoffice/production/) API library.
We found that metoffice-fetch 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.