
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
angular-link-header-parser
Advanced tools
AngularJS factory that parse Link header and return a JSON object.
AngularJS factory that parse Link header and return a JSON object.
Released under the terms of the MIT License.
If you want to contribute, please read this small guide.
You ask yourself what has changed? Please read the changelog.
bower install [--save] angular-link-header-parser
Include angular-link-header-parser.js
or minified version angular-link-header-parser.min.js
.
<script src="path/to/vendors/angular-link-header-parser/release/angular-link-header-parser.js"></script>
<!-- OR -->
<script src="path/to/vendors/angular-link-header-parser/release/angular-link-header-parser.min.js"></script>
Add the module ig.linkHeaderParser
as a dependency to your app module.
angular.module("app", [ "ig.linkHeaderParser" ]);
Then when needed inject linkHeaderParser
as a dependency.
angular
.module("app")
.controller("Controller", Controller);
Controller.$inject = [ "linkHeaderParser" ];
function Controller(linkHeaderParser) {
var vm = this;
var linkHeaderText = '<http://localhost:28786/dev/certifications?page=1&limit=100>; rel="first", <http://localhost:28786/dev/certifications?page=1&limit=100>; rel="last", <http://localhost:28786/dev/certifications?page=1&limit=100>; rel="next", <http://localhost:28786/dev/certifications?page=1&limit=100>; rel="prev"';
var json = linkHeaderParser.parse(linkHeaderText);
console.log(json);
}
You will receive a JSON object like this :
{
"first": {
"limit": 100,
"page": 1,
"url": "http://localhost:28786/dev/certifications?page=1&limit=100"
},
"last": {
"limit": 100,
"page": 1,
"url": "http://localhost:28786/dev/certifications?page=1&limit=100"
},
"next": {
"limit": 100,
"page": 1,
"url": "http://localhost:28786/dev/certifications?page=1&limit=100"
},
"prev": {
"limit": 100,
"page": 1,
"url": "http://localhost:28786/dev/certifications?page=1&limit=100"
},
}
FAQs
AngularJS factory that parse Link header and return a JSON object.
The npm package angular-link-header-parser receives a total of 49 weekly downloads. As such, angular-link-header-parser popularity was classified as not popular.
We found that angular-link-header-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.