New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

representor-serializer

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

representor-serializer

Node.js implementation of a serializer for major Hypermedia Formats, in the context of Representor Pattern.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
2
Created
Source

Representor (Serializer)

MIT License CI Tests Status Build Status NPM Version  

Node.js implementation of a serializer for major Hypermedia Formats, in the context of Representor Pattern.

Installation

> npm install representor-serializer --save

Usage


var repserializer = require('representor-serializer');

var uber = repserializer(internal_representation, 'application/vnd.uber+json');

Included tests showcase examples of internal representation: https://github.com/apiacademy/representor/tree/master/test/fixtures

Currently Implemented Hypermedia Formats

  • HAL: application/hal+json (and application/vnd.hal+json for backwards-compatibility).
  • SIREN: application/vnd.siren+json
  • Collection+JSON: application/vnd.collection+json
  • UBER: application/vnd.uber+json

How to add a new serializer

@TODO

Keywords

hypermedia

FAQs

Package last updated on 21 Apr 2017

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