mead-client

1.0.0 • Public • Published

mead-client

npm versionBuild StatusCoverage StatusDependency status

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.

Package Sidebar

Install

npm i mead-client

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rexxars