Skip to content

victorenator/http-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-link

Library for parsing HTTP Link header http://www.w3.org/wiki/LinkHeader

Synopsis

NodeJS

var httpLink = require('http-link');
var links = httpLink.parse('<http://example.com/acb>; rel=alternate; type=text/html');

RequireJS

define(['http-link'], function(httpLink) {
var links = httpLink.parse('<http://example.com/acb>; rel=alternate; type=text/html');
});

HTML

<script src="http-link.js"></script>
<script>
httpLink.parse('<http://example.com/acb>; rel=alternate; type=text/html');
</script>

Install

npm install http-link

About

Library for parsing/stringify HTTP link header

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published