Socket
Socket
Sign inDemoInstall

3h-join

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    3h-join

A stream body parser.


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
5.33 kB
Created
Weekly downloads
 

Readme

Source

3h-join

A stream body parser.

Example

const join = require('3h-join');

function callback(err, data) {
    if (err) {
        console.error('Error while reading stream: ', err);
    } else {
        console.log(`Received: ${JSON.stringify(data)}`);
    }
}

join.text({ stream: textStream }, callback);

join.json({
    stream: jsonStream,
    // parser: myJSONParser
}, callback);

join.form({
    stream: formStream,
    // parser: myFormParser
}, callback);

APIs

See the declaration file to learn the APIs.

Keywords

FAQs

Last updated on 08 Jul 2018

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