Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azure-table-streamer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-table-streamer

stream to azure table storage

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

azure-table-streamer

WARNING: this package makes some serious assumptions about how you use table storage, this is not general purpose

A module to read/write text records to azure table storage.

Data is appended to a given partition, RowKeys are automatically generated.

Install

npm install azure-table-streamer

Usage

Set up the module:

// you must require azure
var azure = require('azure-storage');

var AzureTableStreamer = require('azure-table-streamer');
var streamer = AzureTableStreamer(azure, azure.createTableService('UseDevelopmentStorage=true'));

Write stream:

var writer = streamer.writer('table1', 'partition1')

// write a single record
writer.write('foo bar baz', function(err){
	// written
});

// or pipe
process.stdin.pipe(writer);

Read stream:

var reader = streamer.reader('table1', 'partition1')

reader.on('data', function(x){
	console.log(x.toString());
});

// or pipe
reader.pipe(process.stdout);

How it works

Table Storage is optimised for append writes. This module observes that, and creates row keys for you in ascending order (using a timestamp).

The table entity will have one field value, which holds the text streamed into it.

There is no delete or update.

License

MIT

Keywords

FAQs

Package last updated on 15 Apr 2015

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