Notoriously Punctual Manatee
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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

165

Version

4.2.0

License

MIT

Unpacked Size

5.33 kB

Total Files

5

Last publish

Collaborators

  • avatar