json-api-response-converter
v1.6.0
Published
[](https://www.paypal.me/guillaumebriday) [](https://www.npmjs.com/package/json-api-response-converter) [.formattedResponse
console.log(data)
/**
[
{
id: 1,
title: 'This project is awesome',
author: {
id: 1,
name: 'Anakin'
},
comments: [
{
id: 1,
body: 'First!'
},
{
id: 2,
body: 'Second!'
}
]
}
]
*/Many edges cases are tested in the tests folder
Development
$ git clone https://github.com/guillaumebriday/json-api-response-converter
$ cd json-api-response-converter
$ yarn # or npm installYou can run tests with Jest:
$ yarn test # or npm run testCheck the syntax with ESLint:
$ yarn lintContributing
Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.
Credits
Inspired by:
License
The gem is available as open source under the terms of the MIT License.
