Socket
Socket
Sign inDemoInstall

backblaze

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

.npmignore

52

index.js
/*
* Backblaze B2
* API v1
*/
var curl = require('curlrequest');
var B2 = function(accountId, applicationKey, options) {
this._accountId = accountId;
this._applicationKey = applicationKey;
options = options || function(){};
};
B2.prototype.authorizeAccount = function() {
console.log(this._accountId + ':' + this._applicationKey);
var options = {
url: 'https://api.backblaze.com/b2api/v1/b2_authorize_account'
, user: this._accountId + ':' + this._applicationKey
};
curl.request(options, function (err, file) {
console.log(file);
});
};
B2.prototype.createBucket = function() {
};
B2.prototype.deleteBucket = function() {
};
B2.prototype.deleteFileVersion = function() {
};
B2.prototype.downloadFileById = function() {
};
B2.prototype.downloadFileByName = function() {
};
B2.prototype.getFileInfo = function() {
};
B2.prototype.getUploadUrl = function() {
};
exports.B2 = B2;

7

package.json
{
"name": "backblaze",
"version": "1.0.0",
"version": "1.0.1",
"description": "Backblaze B2",

@@ -22,3 +22,6 @@ "main": "index.js",

},
"homepage": "https://github.com/samgranger/backblaze#readme"
"homepage": "https://github.com/samgranger/backblaze#readme",
"dependencies": {
"curlrequest": "^0.5.3"
}
}

@@ -1,1 +0,4 @@

# backblaze
# Backblaze B2
A simple library for Backblaze B2.
To find out more about B2, visit http://backblaze.com/b2
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