Socket
Socket
Sign inDemoInstall

@infocentric/hateoas-parser

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@infocentric/hateoas-parser

Javascript parser for HATEOAS rest APIs


Version published
Maintainers
3
Created
Source

hateoas-parser

Javascript HATEOAS parser

API

This library exposes 4 methods.

getEndpoint(index, rel, params, version)

Pick the "rel" endpoint from the "index" dictionary and resolve it with the provided "params" and "version".

parseLinks(result)

Simple function to convert a raw HATEOAS index result to a more usable key-value Hash

parseUrl(url, params)

Does the same as getEndpoint() but with a URL without solving the index-rel-version puzzle before. parseUrl() is internally called by getEndpoint().

getCleanEndpoint(index, rel)

Format an endpoint by simply removing all optional or required paramaters in the querystring

FAQs

Package last updated on 07 May 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc