
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@javier.alejandro.castro/dropbox
Advanced tools
The Dropbox JavaScript SDK is a lightweight, promise based interface to the Dropbox v2 API that works in both nodejs and browser environments.
The Dropbox JavaScript SDK is a lightweight, promise based interface to the Dropbox v2 API that works in both nodejs and browser environments. It provides common services for making API requests and helper utilities contributed by the community.
Please view our full JavaScript SDK documentation at http://dropbox.github.io/dropbox-sdk-js.
This library depends on the Promise and Fetch globals which require a polyfill (whatwg-fetch, es6-promise) for unsupported browsers and a wrapper around request within Node.js applications. We advise using the isormophic-fetch library which supports fetch within both environments.
For a quick overview the below example will install the package and use it as a CommonJS module. For more alternative loading options please view our Getting started tutorial.
Install the SDK with npm
$ npm install --save dropbox
Include the Dropbox or DropboxTeam class to start making your API calls.
require('isomorphic-fetch'); // or another library of choice.
var Dropbox = require('dropbox').Dropbox;
var dbx = new Dropbox({ accessToken: 'YOUR_ACCESS_TOKEN_HERE' });
dbx.filesListFolder({path: ''})
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log(error);
});
See examples/ for working examples of how the SDK can be used in a few different environments.
Please see CONTRIBUTING.md for information on how to contribute, setup the development environment and run tests.
We will try to follow semver as close as possible. That means bug fixes will be patch releases (1.0.1 -> 1.0.2), additional functionality like new endpoints will be minor releases (1.0.1 -> 1.1.0) and breaking changes to both the library and the API endpoints it hits, will be major releases (1.0.1 -> 2.0.0).
This SDK will be taking the dropbox
package name on
npm from the legacy
SDK, that uses the old version of
the Dropbox API. This will bump the version number from 0.10.3
to
2.0.0
, which should avoid breaking changes due to semver assumptions.
FAQs
The Dropbox JavaScript SDK is a lightweight, promise based interface to the Dropbox v2 API that works in both nodejs and browser environments.
We found that @javier.alejandro.castro/dropbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.