Socket
Socket
Sign inDemoInstall

@uppy/provider-views

Package Overview
Dependencies
14
Maintainers
5
Versions
95
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @uppy/provider-views

View library for Uppy remote provider plugins.


Version published
Weekly downloads
140K
decreased by-13.35%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

@uppy/provider-views

Uppy logo: a smiling puppy above a pink upwards arrow

npm version CI status for Uppy tests CI status for Companion tests CI status for browser tests

View library for Uppy remote provider plugins.

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

Example

import Plugin from '@uppy/core/lib/plugin'
import { ProviderViews } from '@uppy/provider-views'

class GoogleDrive extends UIPlugin {
  install () {
    this.view = new ProviderViews(this)
    // snip
  }

  onFirstRender () {
    return Promise.all([
      this.provider.fetchPreAuthToken(),
      this.view.getFolder('root'),
    ])
  }

  render (state) {
    return this.view.render(state)
  }
}

Installation

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

$ npm install @uppy/provider-views

License

The MIT License.

Keywords

FAQs

Last updated on 27 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc