1.0.0 • Published 9 years ago

link-parse-stream v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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