zzarcon / unsplash-client

lightweight, opinionated, type safe, dependency free Unsplash client

Home Page:https://zzarcon.github.io/unsplash-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unsplash-client

lightweight, opinionated, dependency free Unsplash client

Features

Installation

$ yarn add unsplash-client

Usage

import Unsplash from 'unsplash-client'

const accessKey = 'YOUR-ACCESS-KEY';
const client = new Unsplash(accessKey);
const photos = await client.search('skateboarding');

photos.forEach(photo => {
  console.log(photo.id, photo.urls.full, photo.urls.small)
})

Methods

  • search:

So far those are the methods the library supports as I don't have a use case for other ones. Please let me know if you need access to other methods, and we might add them :)

Author

@zzarcon

About

lightweight, opinionated, type safe, dependency free Unsplash client

https://zzarcon.github.io/unsplash-client

License:MIT License


Languages

Language:TypeScript 97.0%Language:HTML 3.0%