JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q49963F
  • License MIT

Util for handling and parsing jsonapi response object

Package Exports

  • jsonapi-util

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jsonapi-util) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

jsonapi-util

Util functions for working with jsonapi 1.0 structures

Install

You can install using Node Package Manager (npm):

npm install jsonapi-util

Usage

var jsonapi-util = require('jsonapi-util')

API

Methods

parse(obj)

Parse a jsonapi document object to resolves includes and returns a tree structured object.

isDocument(obj)

Verify if a object is a valid JSON API document

isResoucre(obj)

Verify if a object is a valid JSON API resource object