Socket
Book a DemoInstallSign in
Socket

flowhttp-json

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

flowhttp-json

A flowHttp extension used for parsing json HTTP responses

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

flowHttp-json

A flowHttp extension used to parse a JSON HTTP response.

build
status

Install

npm install flowhttp-json

Usage

This module is intended to be used with the flowHttp module.

Use this module to create a JsonParser stream. If piped data from a flowHttp request, it will detect if the response has the content-type application/json in which case it will parse it automatically and pipe the parsed object down the stream.

If you know that the response is always JSON, you should use the JSONStream module instead. This module will only try to parse the response as JSON if the content-type allows it.

var flowHttp = require('flowhttp');
var JsonParser = require('flowhttp-json');

flowHttp('http://example.com/foo.json')
  .pipe(new JsonParser())
  .pipe(process.stdout);

License

MIT

Keywords

flowhttp

FAQs

Package last updated on 27 Dec 2013

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