
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
a promise wrapper for the (un)official dropbox.js
drbx-js uses a modified dropbox.js file, with fixed browserify/nodejs handling
until this get merged: https://github.com/dropbox/dropbox-js/pull/183
install from npm
npm i drbx-js
these methods are used for initializing and connection to dropbox
params url, path_in_dropbox)
response Object containing: status, jobid
params jobid
response Object containing: status, error (on error status)
following function have matching parameters with the Dropbox Core HTTP API
and the (un)official dropbox js api, more info can be found here:
https://github.com/dropbox/dropbox-js/blob/stable/src/client.coffee
https://www.dropbox.com/developers/core/docs
var Drbx = require('../src/drbx.js');
Drbx.init({
client : { key : [Dropbox API Key] },
auth : new Drbx.Dropbox.AuthDriver.Popup({
receiverUrl : [receiverUrl],
rememberUser : true
})
});
Drbx.login()
.then(function isLoggedIn() {
console.log('user is logged in');
})
.catch(function(err) {
console.log(err);
});
Drbx.accountInfo()
.then(function getUserData(userData) {
console.log(userData);
})
.catch(function(err) {
console.log(err);
});
Drbx.saveUrl('http://url-to-someting', '/path/in/dropbox')
.then(function saveUrlResponse(metadata) {
console.log(metadata);
})
.catch(function(err) {
console.log(err);
});
Drbx.readdir('/')
.then(function getRootDirData(folderMetaData) {
console.log(folderMetaData);
})
.catch(function(err) {
console.log(err);
});
FAQs
Promise Dropbox-Api Wrapper
The npm package drbx-js receives a total of 1 weekly downloads. As such, drbx-js popularity was classified as not popular.
We found that drbx-js 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.