earthview

Sets a random satellite image from Earth View with Google as a wallpaper.

Usage no npm install needed!

<script type="module">
  import earthview from 'https://cdn.skypack.dev/earthview';
</script>

README

EarthView

Sets a random satellite image from Earth View with Google as a wallpaper.

The dataset of the satellite images are scrapped beforehand using a script (see install.js) by calling multiple network requests. Feel free to fetch those images again.

Usage

As CLI

npm install -g earthview
earthview

As library

import {
  scrap,      // fetch newest images
  wallpapers, // cached list of wallpapers
  random,     // get random image
} from 'earthview'

const randomImage = random() 

scrap().then(wallpapers => { /* ... */ })