Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

data-shaper

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-shaper - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "data-shaper",
"version": "0.1.0",
"version": "0.1.1",
"description": "Utility for building meaningful data shapes from normalized, related data",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -29,2 +29,16 @@ # Data shaper

var companyShape = {
id: 'id',
name: 'name'
};
var personShape = {
id: 'id',
name: 'name',
company: {
reference: 'companyId',
shape: companyShape
}
};
dataShaper(

@@ -31,0 +45,0 @@ { id: 1, name: 'Kristoffer', companyId: 2 }, // data to shape

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc