
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
normalize-json-api
Advanced tools
Normalizes JSON API responses according to a schema for Flux and Redux apps. More on JSON API. Thanks to paularmstrong and Dan Abramov for building normalizr where the original idea of this library came from :)
npm install --save normalize-json-api
normalize-json-api takes JSON API and
For example,
{
data: {
id: 1,
type: 'articles',
attributes: {
title: 'Shoes',
'is-favorite': false,
},
relationships: {
author: {
data: {
type: 'users',
id: 9,
},
},
},
},
included: [
{
type: 'users',
id: 9,
attributes: {
'first-name': 'Marie',
'last-name': 'Brizard',
twitter: 'mb',
},
},
],
}
can be normalized to
{
results: {
articles: [1],
users: [9],
},
entities: {
articles: {
1: {
id: 1,
type: 'articles',
title: 'Shoes',
isFavorite: false,
author: 9,
},
},
users: {
9: {
id: 9,
type: 'users',
firstName: 'Marie',
lastName: 'Brizard',
twitter: 'mb',
},
},
},
}
TODO
TODO
normalize-json-api was inspired heavily by normalizr
FAQs
Normalizes JSON API responses for Redux and Flux applications
The npm package normalize-json-api receives a total of 0 weekly downloads. As such, normalize-json-api popularity was classified as not popular.
We found that normalize-json-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.