Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/twlite/doesnotexist

Returns random image from doesnotexist.
https://github.com/twlite/doesnotexist

Last synced: about 1 month ago
JSON representation

Returns random image from doesnotexist.

Awesome Lists containing this project

README

        

# DoesNotExist
Fetches random image from **thispersondoesnotexist.com**

# Example

```js
const doesnotexists = require("doesnotexist");
const fs = require("fs");

// person
doesnotexists("person")
.then(x => fs.writeFileSync("./person.png", x))
.catch(console.error);

// horse
doesnotexists("horse")
.then(x => fs.writeFileSync("./horse.png", x))
.catch(console.error);

// cat
doesnotexists("cat")
.then(x => fs.writeFileSync("./cat.png", x))
.catch(console.error);

// art
doesnotexists("artwork")
.then(x => fs.writeFileSync("./art.png", x))
.catch(console.error);

```

# Join my discord
[![](https://i.imgur.com/f6hNUfc.png)](https://discord.gg/2SUybzb)