uppy/packages/@uppy/server-utils
Renée Kooi f9a9762dfa
Release
- uppy@0.26.0
 - @uppy/aws-s3-multipart@0.26.0
 - @uppy/aws-s3@0.26.0
 - @uppy/core@0.26.0
 - @uppy/dashboard@0.26.0
 - @uppy/drag-drop@0.26.0
 - @uppy/dropbox@0.26.0
 - @uppy/file-input@0.26.0
 - @uppy/form@0.26.0
 - @uppy/golden-retriever@0.26.0
 - @uppy/google-drive@0.26.0
 - @uppy/informer@0.26.0
 - @uppy/instagram@0.26.0
 - @uppy/progress-bar@0.26.0
 - @uppy/provider-views@0.26.0
 - @uppy/react@0.26.0
 - @uppy/redux-dev-tools@0.26.0
 - @uppy/server-utils@0.26.0
 - @uppy/status-bar@0.26.0
 - @uppy/store-default@0.26.0
 - @uppy/store-redux@0.26.0
 - @uppy/thumbnail-generator@0.26.0
 - @uppy/transloadit@0.26.0
 - @uppy/tus@0.26.0
 - @uppy/url@0.26.0
 - @uppy/utils@0.26.0
 - @uppy/webcam@0.26.0
 - @uppy/xhr-upload@0.26.0
2018-06-28 17:12:13 +02:00
..
src Remove whatwg-fetch polyfill. 2018-06-25 16:25:59 +02:00
types Use a single typescript config for all types tests. 2018-06-28 16:30:24 +02:00
LICENSE Move UppySocket, RequestClient, Provider to @uppy/server-utils. 2018-06-14 16:31:19 +02:00
package.json Release 2018-06-28 17:12:13 +02:00
README.md Insert missing documentation links. 2018-06-18 13:20:19 +02:00

@uppy/server-utils

Uppy logo: a superman puppy in a pink suit

Build Status

Client library for communication with Uppy Server. 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/server-utils')

const uppy = Uppy()

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

const provider = new Provider(uppy, {
  serverUrl: '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/server-utils --save

License

The MIT License.