Host Image Resolver
Talks to various image hosting services to resolve a URL into all pictures associated with said URL.
Currently Supported Services
- imgur (auth required for albums)
- deviantArt (including fav.me URLs)
- gfycat
- tumblr (auth required)
- yande.re
Installation
npm install host-image-resolver
Configuration
Some services require authentication tokens. To set these values, you can create a hir-config.js
file in the root of your project.
moduleexports = IMGUR_CLIENT_SECRET: 'the-secret' TUMBLER_KEY: 'tumbl-tumbl';
How to Use
HIR is simple to use, exposing only one public method:
const hostImageResolver = ; ;