Skip to content

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

Notifications You must be signed in to change notification settings

HeySkidee/random-pfp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

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