Skip to content

wlaeri/bob-ross-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bob Ross Client

A javascript client for Bob Ross image servers. Generates URLs and image source sets for retrieving images.

Installation

$ yarn add bob-ross-client

Implementation

import BobRossClient from 'bob-ross-client'
import hmacs from './hmacs.json'

const client = new BobRossClient({
  serverUrl: process.env.BOB_ROSS_SERVER_URL,
  hmacs
})

Usage

The Bob Ross client has two methods: client.getUrl and client.getSrcset. Both methods take the image hash and options as parameters. For more information on which keys the options object takes refer to the Bob Ross documentation.

const imageUrl = client.getUrl('abc123', {
  resize: '300x225*',
  ...
})

const imageSrcset = client.getSrcset('abc123', {
  resize: '300x225*',
  ...
})

Resources

Credits

All credits go to Jon and James Bracy.

License

MIT

About

A javascript client for Bob Ross image servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published