link-parse-stream

1.0.0 • Public • Published

link-parse-stream

Build Status npm install

a streaming parser for http link header format

example

var linkParser = require('link-parse-stream')
  , request = require('hyperquest')
 
request('http://some-resource-with-link.headers', function(err, res) {
  if(err) {
    return console.log('lol')
  }
 
  res.pipe(linkParser()).on('data', function(data) {
    console.log(data) // {href: 'http://whatever.herpderp', rel: 'iunno'}
  })
})

license

MIT

Readme

Keywords

Package Sidebar

Install

npm i link-parse-stream

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jarofghosts