Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kherrick/x-weather

A collection of Web Components implementing portions of the OpenWeatherMap API.
https://github.com/kherrick/x-weather

custom-elements service-worker weather weather-app web-components

Last synced: 3 days ago
JSON representation

A collection of Web Components implementing portions of the OpenWeatherMap API.

Awesome Lists containing this project

README

        

# \

## About

A collection of [web components](https://developer.mozilla.org/en-US/docs/Web/Web_Components) implementing portions of the [OpenWeatherMap API](https://openweathermap.org/api).



## Usage

### Static Import Example:

Install:
```bash
npm i x-weather
```

Render:

```html

import * as XWeather from './node_modules/x-weather/dist/esm/module.js'

XWeather.defineCustomElements()


```

### Dynamic Import Example:

Render:
```html

import('https://unpkg.com/x-weather/dist/esm/defineCustomElements.js')
.then(({
defineCustomElements
}) => {
defineCustomElements()
})


```

## Development
```bash
npm run start
```

## Lint
```bash
npm run lint
```

## Build
```bash
npm run build
```