today-dilbert

Gets today's dilbert image url

Usage no npm install needed!

<script type="module">
  import todayDilbert from 'https://cdn.skypack.dev/today-dilbert';
</script>

README

Today Dilbert

This module gets today's Dilbert comic from dilbert.com

Beware: This function fetches and parses html. It is slow.

Example

dilbert(function(err, data) {
  data == {
    url: 'http://assets.amuniversal.com/321a39e06d6401301d80001dd8b71c47'
    date: '2001-10-25'
  }
})

dilbert.com doesn't have an api so there's some dom magic going on in the backend to be able to get the comic.

Credit for the original idea of getting a random dilbert comic package goes to gavindinubilo (thanks).