Nice Philanthropist Metalhead
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

unsplash

4.2.0 • Public • Published

unsplash

Beautiful photo javaScript generator https://unsplash.it/

Build Status NPM version NPM downloads

https://unsplash.it/ JavaScript generator

install

npm

npm i unsplash --save
// var uh = require('unsplash')

Script tag

<script src="https://unpkg.com/unsplash@latest/uh.js" ></script>

API

uh(200)
// https://unsplash.it/200

https://unsplash.it/200

uh(200,300)
// https://unsplash.it/200/300

https://unsplash.it/200/300

 
uh(200,300,'random')
uh(200,300,'r')
// https://unsplash.it/200/300/?random

https://unsplash.it/200/300/?random

uh('g', 200,300)
// https://unsplash.it/g/200/300

https://unsplash.it/g/200/300

uh(200,300,'image=1083')
// https://unsplash.it/200/300?image=1083

https://unsplash.it/200/300?image=1083

uh(200,300,'blur')
// https://unsplash.it/200/300?blur

https://unsplash.it/200/300?image=1083

uh(200,300,'gravity=east')
// https://unsplash.it/200/300?gravity=east

https://unsplash.it/200/300?gravity=east

install

npm i unsplash

Downloadsweekly downloads

14

version

4.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability