0.1.14 • Published 8 years ago

jsonapi-model-formatter v0.1.14

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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
0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago