Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Wallhaven

Wallhaven Lib Class used for Search etc...

const client = new Wallhaven();
client.random('Tokyo Ghoul') // (Optional) - Random Image by Search
 .then((c) => console.log(c.data.length))
 .catch(err => {
   console.error(err);
   throw err;
 });

Hierarchy

  • Wallhaven

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private Optional apiKey

apiKey: string

Methods

random

search

wallpaperById

  • wallpaperById(id: string): Promise<Wallpaper>

Generated using TypeDoc