🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

json-api-adapter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-api-adapter

A library for constructing JSON-API compliant responses

0.3.0
latest
npm
Version published
Weekly downloads
11
450%
Maintainers
1
Weekly downloads
 
Created
Source

json-api-adapter

A library for constructing JSON-API compliant responses

Installation

npm install json-api-adapter --save

Usage

const JSONAPIAdapter = require('json-api-adapter')
// post is data return from Monoose
const postData = new JSONAdpter(post).getResponse()
// response send from express
res.json(postData);

Tests

npm test

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Release History

  • 0.0.1 Initial release

Keywords

restful

FAQs

Package last updated on 19 Jun 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