https://github.com/topheman/deno-weather
🦕🌦A deno cli/wrapper around wttr.in to discover deno
https://github.com/topheman/deno-weather
deno typescript
Last synced: 2 months ago
JSON representation
🦕🌦A deno cli/wrapper around wttr.in to discover deno
- Host: GitHub
- URL: https://github.com/topheman/deno-weather
- Owner: topheman
- Created: 2021-04-20T10:15:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-28T17:29:12.000Z (over 4 years ago)
- Last Synced: 2025-12-26T20:11:30.465Z (6 months ago)
- Topics: deno, typescript
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deno-weather
Cli/Wrapper in deno based on the API behind https://wttr.in/.
The goal of this project is to discover deno.
You can launch the cli simply with:
```sh
deno run https://raw.githubusercontent.com/topheman/deno-weather/master/mod.ts
# to show help :
deno run https://raw.githubusercontent.com/topheman/deno-weather/master/mod.ts --help
# to specify a loacation :
deno run https://raw.githubusercontent.com/topheman/deno-weather/master/mod.ts Paris, France
# you can specify a language
deno run https://raw.githubusercontent.com/topheman/deno-weather/master/mod.ts Paris, France --lang fr
```
You can use the api that way:
```js
import { makeApi } from "https://raw.githubusercontent.com/topheman/deno-weather/master/mod.ts";
const api = makeApi();
const payload = await api({
params: {
lang: "fr",
},
location: "Paris, France",
});
console.log(JSON.stringify(payload, null, " "));
```
TODO : point to a specific tag instead of `master`