request-through

1.0.1 • Public • Published

request-through

Wraps the 'request' npm module as a through stream.

= require 'highland'
 
request = require './index'
_([
  uri: 'https://test.stellar.org:9002'
  method: 'POST'
  json: true
  body: JSON.stringify
    "method": "account_info",
    "params": [
      {
        "account": "ganVp9o5emfzpwrG5QVUXqMv8AgLcdvySb",
        "ledger_index": 400
      }
    ]
])
.through(request())
.each (x) -> console.log JSON.stringify xnull2

Readme

Keywords

none

Package Sidebar

Install

npm i request-through

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • mpj