Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

jsonapi-model-formatter

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonapi-model-formatter

JSON API formatter for dovima models.

latest
Source
npmnpm
Version
0.1.14
Version published
Maintainers
2
Created
Source

Jsonapi-model-formatter.js npm version license type npm downloads ECMAScript 6 & 5

JSON API formatter for dovima models.

import JsonApiModelFormatter from "jsonapi-model-formatter";
import Model from "dovima";
Model.jsonFormatter = JsonApiModelFormatter; //so now, when you do toJSON on dovima models, you got a jsonapi-compliant model

Quality and Compatibility

Build Status Coverage Status Code Climate Dependency Status Dev Dependency Status

Every build and release is automatically tested on the following platforms:

node 0.12.x node 0.11.x node 0.10.x iojs 2.x.x iojs 1.x.x

Sauce Test Status

If your platform is not listed above, you can test your local environment for compatibility by copying and pasting the following commands into your terminal:

npm install jsonapi-model-formatter
cd node_modules/jsonapi-model-formatter
gulp test-local

Installation

Copy and paste the following command into your terminal to install Jsonapi-model-formatter:

npm install jsonapi-model-formatter --save

Import / Require

// ES6
import jsonApiModelFormatter from "jsonapi-model-formatter";
// ES5
var jsonApiModelFormatter = require("jsonapi-model-formatter");
// Require.js
define(["require"] , function (require) {
    var jsonApiModelFormatter = require("jsonapi-model-formatter");
});

Getting Started

The usage on the top of this file is pretty much all you need to do right now, it works like a formatter middleware for dovima models.

How to Contribute

See something that could use improvement? Have a great feature idea? We listen!

You can submit your ideas through our issues system, or make the modifications yourself and submit them to us in the form of a GitHub pull request.

We always aim to be friendly and helpful.

Running Tests

It's easy to run the test suite locally, and highly recommended if you're using Jsonapi-model-formatter.js on a platform we aren't automatically testing for.

npm test

Keywords

jsonapi-model-formatter

FAQs

Package last updated on 19 Feb 2016

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