New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

azure-block-blob-storage

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-block-blob-storage

Small module wrapper for the AWS sdk that allows you to easily use azure.

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

azure-block-blob-storage

Small module wrapper for the AWS sdk that allows you to easily use azure.

npm install azure-block-blob-storage 

Usage

var azure = require('azure-block-blob-storage')({
  containerName: 'my-container'
  connectionString: '...'
})

azure.put('hello', 'world', function () {
  azure.get('hello', console.log)
})

Or if you want use the file system locally instead

var azure = require('azure-block-blob-storage')('my-bucket', {
  type: 'fs' // will store the data in ./my-bucket
})

// azure has the same api

API

var azure = azurestorage(bucket, [options])

Make a new storage instance. Options include:

azure.put(key, value, [callback])

Write a new value.

azure.get(key, callback)

Read a value out

azure.del(key, [callback])

Delete a value

azure.createReadStream(key, options)

Create a readable stream to a key.

azure.createWriteStream(key, options)

Create a writeable stream to a key. Options include

{
  length: sizeOfStream, // required
}
azure.rename(src, dest, [callback])

Rename a folder/file

azure.stat(key, callback)

Return stat info about a key. The returned object looks like this:

{
  size: sizeOfValue,
  modified: lastModifiedDate
}
var stream = azure.list([options])

Create a list stream. Each data emitted looks like this

{
  key: 'value/key', // the value key
  size: 24, // how many bytes
  modified: Date() // when was it modified last?
}

Options include:

{
  prefix: 'foo', // only list keys under foo
  limit: 14 // only return this many
}

License

MIT

FAQs

Package last updated on 20 Jun 2018

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