@uppy/companion-client
Client library for communication with Companion. Intended for use in Uppy plugins.
Last updated a month ago by arturi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @uppy/companion-client 
SYNC missed versions from official npm registry.

@uppy/companion-client

Uppy logo: a superman puppy in a pink suit

Build Status

Client library for communication with Companion. Intended for use in Uppy plugins.

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

const Uppy = require('@uppy/core')
const { Provider, RequestClient, Socket } = require('@uppy/companion-client')

const uppy = new Uppy()

const client = new RequestClient(uppy, { companionUrl: 'https://uppy.mywebsite.com/' })
client.get('/drive/list').then(() => {})

const provider = new Provider(uppy, {
  companionUrl: 'https://uppy.mywebsite.com/',
  provider: providerPluginInstance
})
provider.checkAuth().then(() => {})

const socket = new Socket({ target: 'wss://uppy.mywebsite.com/' })
socket.on('progress', () => {})

Installation

Unless you are writing a custom provider plugin, you do not need to install this.

$ npm install @uppy/companion-client

License

The MIT License.

Current Tags

  • 1.7.0                                ...           latest (a month ago)

29 Versions

  • 1.7.0                                ...           a month ago
  • 1.6.1                                ...           2 months ago
  • 1.6.0                                ...           3 months ago
  • 1.5.4                                ...           4 months ago
  • 1.5.3                                ...           6 months ago
  • 1.5.2                                ...           6 months ago
  • 1.5.1                                ...           6 months ago
  • 1.5.0                                ...           7 months ago
  • 1.4.5                                ...           8 months ago
  • 1.4.4                                ...           9 months ago
  • 1.4.3                                ...           9 months ago
  • 1.4.2                                ...           a year ago
  • 1.4.1                                ...           a year ago
  • 1.4.0                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.28.5                                ...           2 years ago
  • 0.28.4                                ...           2 years ago
  • 0.28.3                                ...           2 years ago
  • 0.28.2                                ...           2 years ago
  • 0.28.1                                ...           2 years ago
  • 0.28.0                                ...           2 years ago
  • 0.27.3                                ...           2 years ago
  • 0.27.2                                ...           2 years ago
  • 0.27.1                                ...           2 years ago
  • 0.27.0                                ...           2 years ago

Copyright 2014 - 2017 © taobao.org |