/random-pfp

npm package that gives random pfp links for user icons or other uses

Primary LanguageJavaScript

Random Pfp

A npm package that gives random 500x500 profile picture image links for user icons, avatars, or other creative uses

NPM Downloads NPM Version

Installation:

npm i random-pfp

How to use:

const pfp = require('random-pfp');

console.log(pfp());

or

import pfp from 'random-pfp'

console.log(pfp())

Example:

const express = require('express');
const app = express();

const pfp = require('random-pfp');

app.get('/', (req, res)=>{
    res.send(`<img src="${pfp()}" width="250px">`)
})

app.listen(3000);

image