Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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.
The npm package metoffice-fetch receives a total of 8 weekly downloads. As such, metoffice-fetch popularity was classified as not popular.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.