Skip to content

a pull-stream interface for the `require('nets')` npm module

Notifications You must be signed in to change notification settings

jakeburden/pull-nets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pull-nets

A small pull-stream interface that makes the nets npm module into a source. For making GET request in the browser or on the server.

install

npm i pull-nets

usage

var nets = require('pull-nets')
var pull = require('pull-stream')


pull(
  nets('https://scuttlebutt.nz'),
  pull.drain(function (buf) {
    console.log(buf.toString())
  })
)

note

the nature of nets is to return a buffer. so the source isn't really streaming, it runs once and returns a buffer into memory.

About

a pull-stream interface for the `require('nets')` npm module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published