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

https://github.com/heyskidee/random-pfp

npm package that gives random pfp links for user icons or other uses
https://github.com/heyskidee/random-pfp

image pfp pfps profile-picture profile-picture-generator random random-image random-image-generator random-pfp

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Random Pfp

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

[![NPM Downloads](https://badgen.net/npm/dt/random-pfp)](https://npmcharts.com/compare/random-pfp?minimal=true)
[![NPM Version](https://badgen.net/npm/v/random-pfp)](https://npmjs.org/package/random-pfp)

### Installation:

```
npm i random-pfp
```

### How to use:

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

console.log(pfp());
```

or

```js
import pfp from 'random-pfp'

console.log(pfp())
```

### Example:

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

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

app.get('/', (req, res)=>{
res.send(``)
})

app.listen(3000);
```

![image](https://github.com/user-attachments/assets/ba269f9a-afaa-4254-b841-2b80e0757cb9)