Socket
Socket
Sign inDemoInstall

abstract-chunk-transport

Package Overview
Dependencies
10
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    abstract-chunk-transport

Access an abstract-chunk-store over any stream


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
144 kB
Created
Weekly downloads
 

Readme

Source

abstract-chunk-transport

Access an abstract-chunk-store over any stream.

Example

var transport = require('abstract-chunk-transport');
var Store = require('memory-chunk-store');

var store = new Store(16);
var client = transport.client();
client.pipe(transport.server(store)).pipe(client);

client.put(0, Buffer('0123456789abcdef'), function(err){
  if (err) throw err;

  client.get(0, function(err, buf){
    if (err) throw err;

    console.log('BUF', buf, buf.toString());

    server.close();
    con.end();
  });
});

Installation

$ npm install abstract-chunk-transport

API

.server(store)

.client

License

MIT

FAQs

Last updated on 01 Dec 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc