mead-client
v1.0.0
Published
Client for the Mead image service
Downloads
9
Readme
mead-client
Javascript client for the Mead image service.
Installation
npm install --save mead-client
Usage
var MeadClient = require('mead-client');
var client = new MeadClient({
host: 'https://sourceName.mead.host',
token: 'secureUrlToken' // Or skip this if you don't sign your requests
});
var imageUrl = client.getUrl('/path/to/image.png', {w: 1280, h: 720})
Browser usage
The NPM package ships with an UMD-bundle which is optimized for browsers. You can load it from npmcdn by referencing the umd
-field: https://npmcdn.com/mead-client?main=umd
It will be available under window.MeadClient
or as an AMD and CommonJS module under mead-client
.
License
MIT-licensed. See LICENSE.