Socket
Book a DemoInstallSign in
Socket

join-includes

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

join-includes

Function for re-treeing JSON API formatted payloads.

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

join-includes

Build Status Coverage Status npm version Downloads

Function for re-treeing JSON API formatted payloads

Usage

Add to your project:

npm install join-includes

And import the function:

import joinIncludes from 'join-includes'

fetch('http://your-site.com/api/whatever?include=otherstuff').then(response => {
  return response.json()
}).then(data => {
  const joinedData = joinIncludes(data.data, data.included)
  console.log(joinedData)
})

Keywords

join

FAQs

Package last updated on 06 Mar 2020

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