Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 1.0.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc