Skip to main content
Home

Access Yr.no's weather API.

This package works with Deno, Bun
This package works with Deno
This package works with Bun
JSR Score
64%
Published
2 years ago (2.1.0)

Access Yr's weather API for getting weather forecast about a specific location.

Example for current weather

import { getCurrent } from 'https://deno.land/x/dyr/mod.ts';

const currentWeather = getCurrent('Bergen');
// do what you need to do with the weather data.

Example for forecasted weather

import { getForecast } from 'https://deno.land/x/dyr/mod.ts';

const location = 'Bergen';
const hoursAhead = 5;

const currentWeather = getForecast(location, hoursAhead);

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@timharek/d-yr

Import symbol

import * as d_yr from "@timharek/d-yr";
or

Import directly with a jsr specifier

import * as d_yr from "jsr:@timharek/d-yr";

Add Package

bunx jsr add @timharek/d-yr

Import symbol

import * as d_yr from "@timharek/d-yr";