Skip to content

MuhammadUzair/random-image-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-image-unsplash

Version Documentation License: MIT

A javascript package for random image url. Fetched images from unsplash. It can be use in any javascript framework (both frontend and backend).

Getting Started

1-Run npm i random-image-unsplash
or
yarn add random-image-unsplash
2-Add in js
import { FetchImage } from 'random-image-unsplash'; or const { FetchImage } = require('random-image-unsplash')

FetchImage({ type: 'user', width: 400, height: 400 }).then((image)=>{
let randomImage = image; //return image url })

You can change width, height and type.
type is collection from https://unsplash.com/collections

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Show your support

Give a ⭐️ if this project helped you!

About

A javascript package for random image url. Fetched images from unsplash. It can be use in any javascript framework (both frontend and backend).

Resources

License

Stars

Watchers

Forks