New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dropbox-client

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dropbox-client

Dropbox API client

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-13.33%
Maintainers
1
Weekly downloads
 
Created
Source

dropbox-client Travis npm package

dropbox-client is a client for the Dropbox developer API v2 that uses JavaScript's fetch API.

Installation

Using npm:

$ npm install --save dropbox-client

Then, use as you would anything else:

// using ES6 modules
import { fetch, createFetch } from 'dropbox-client'

// using CommonJS modules
var fetch = require('dropbox-client').fetch
var createFetch = require('dropbox-client').createFetch

In node, dropbox-client automatically uses the node-fetch library under the hood so no extra configuration is necessary. You'll need to be running node >= 4. Be sure to read about the known differences between node-fetch and the fetch spec.

You'll need to shim window.fetch in browsers that do not support it (Safari and IE). github/fetch is a great polyfill.

If you're bundling dropbox-client with webpack, you'll want to include the following in your webpack config:

const webpack = require('webpack')

module.exports = {
  plugins: [
    new webpack.IgnorePlugin(/node-fetch/),
    new webpack.DefinePlugin({
      'typeof window': JSON.stringify('object')
    })
  ]
}

The UMD build is also available on npmcdn:

<script src="https://npmcdn.com/dropbox-client/umd/dropbox-client.min.js"></script>

You can find the library on window.DropboxClient.

FAQs

Package last updated on 19 Mar 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc