
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
node-datastores
Advanced tools
#Node.js wrapper for Dropbox Datastore API
###Usage
var DropboxDatastore = require('../src/dropbox-datastore-node');
var options = {
app_key: '...',
app_secret: '...',
response_type: 'code',
redirect_uri: 'http://localhost:3000/' // The / is the path and is required
};
var datastore = new DropboxDatastore(options);
###Methods
datastore.getInfo(fn(data));
datastore.listDatastore(fn(data));
datastore.getCreateDatastore(NAME,fn(data));
datastore.retrieveSnapshot(HANDLE,fn(data));
datastore.putDelta(HANDLE,CHANGES,fn(data));
datastore.deleteDatastore(HANDLE,fn(data));
###Testing
The test need the config file which contains the app key and secret. For easy testing I also included an access token which is used for testing.
exports.options = {
app_key: '...',
app_secret: '...',
response_type: 'code',
redirect_uri: 'http://localhost:3000/' // The / is the path and is required
};
exports.test_token = 'y-8E3SDJgGMAAAAAAAAAAdOLY39769xtn9AUbLA1-jtwhEHGv2jHXs2m5X6FgddI'; // Test token
###TODO Implementing all the endpoint of the current API Simplyfying the put_delta endpoint to make CRUD operations easier
FAQs
Node.js wrapper for Dropbox Datastore API
We found that node-datastores 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.