Socket
Book a DemoInstallSign in
Socket

@edenjs/b2

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edenjs/b2

nothing yet

latest
npmnpm
Version
1.0.6
Version published
Weekly downloads
16
60%
Maintainers
3
Weekly downloads
 
Created
Source

EdenJS - Backblaze B2

TravisCI Issues License Awesome Discord

Backblaze B2 base logic component for EdenJS

@edenjs/b2 automatically adds the Backblaze B2 asset transport to your EdenJS installation

Setup

Install

npm i --save @edenjs/b2

Configure

config.b2 = {
  id     : '', // backblaze id
  secret : '', // backblaze api key
  bucket : '', // backblaze bucket name
  domain : '', // (optional) cname or other domain that points to this bucket address
};

Example

// require model
const File = model('file');

// load file
const file = new File();

// await file creation
await file.fromFile('/local/file/location.pdf');

// save file
await file.save(); // this is now stored in backblaze

// get url for file
const url = await file.url(); // returns full url to download the file

FAQs

Package last updated on 31 Aug 2019

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