Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zzarcon/unsplash-client
lightweight, opinionated, type safe, dependency free Unsplash client
https://github.com/zzarcon/unsplash-client
api client free photos typescript unsplash unsplash-api unsplash-client
Last synced: about 2 months ago
JSON representation
lightweight, opinionated, type safe, dependency free Unsplash client
- Host: GitHub
- URL: https://github.com/zzarcon/unsplash-client
- Owner: zzarcon
- License: mit
- Created: 2019-02-04T10:31:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T03:37:03.000Z (about 2 years ago)
- Last Synced: 2024-11-17T20:19:49.151Z (about 2 months ago)
- Topics: api, client, free, photos, typescript, unsplash, unsplash-api, unsplash-client
- Language: TypeScript
- Homepage: https://zzarcon.github.io/unsplash-client
- Size: 2.28 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unsplash-client
> lightweight, opinionated, dependency free Unsplash client### Features
* Bundle size: [0.5kB](https://bundlephobia.com/result?p=unsplash-client) vs [6kB unsplash-js ](https://bundlephobia.com/result?p=unsplash-js)
* Type safe### Installation
```
$ yarn add unsplash-client
```### Usage
```javascript
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](https://twitter.com/zzarcon)