Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/twlite/doesnotexist
- Owner: twlite
- License: mit
- Created: 2020-10-20T03:52:42.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-20T03:53:14.000Z (about 4 years ago)
- Last Synced: 2024-10-08T09:49:21.081Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://npmjs.com/package/doesnotexist
- Size: 906 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)