doesnotexist

1.1.1 • Public • Published

DoesNotExist

Fetches random image from thispersondoesnotexist.com

Example

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

Package Sidebar

Install

npm i doesnotexist

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

2.77 kB

Total Files

3

Last publish

Collaborators

  • snowflake7