https://github.com/nathan-html/weather-api.js
weather-api.js is a simple Node.js module that allows you to easily interact with the API of weatherapi.com.
https://github.com/nathan-html/weather-api.js
nodejs-module npm-package weather-api
Last synced: 9 months ago
JSON representation
weather-api.js is a simple Node.js module that allows you to easily interact with the API of weatherapi.com.
- Host: GitHub
- URL: https://github.com/nathan-html/weather-api.js
- Owner: Nathan-html
- License: mit
- Created: 2023-02-05T16:17:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-23T01:13:17.000Z (almost 3 years ago)
- Last Synced: 2025-03-15T15:17:17.964Z (10 months ago)
- Topics: nodejs-module, npm-package, weather-api
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/weather-api.ts
- Size: 77.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
weather-api.ts is an unofficial plugin that allows you to easily interact with the API of weatherapi.com
# Installation
```
npm install weather-api.ts
yarn add weather-api.ts
pnpm add weather-api.ts
```
# Uses
```ts
// get realtime weather data with a query
let weatherData;
await new Weather(KEY, LANG, FORMAT)
.realtime({q: QUERY})
.then(result => {
weatherData = result;
})
.catch(error => {
console.error(error);
});
```
# Links
# Help
If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to report an issue on Github or send me a mail.
