Socket
Book a DemoInstallSign in
Socket

gehry

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gehry

deconstruct (and reconstruct) objects

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

gehry.js

gehry.js is a micro library that converts decomposes (deconstructs) a hierarchical object into an array of objects containing primitive properties only. I can also reconstruct the original object and it preserves circular references.

Name

It's named after after the deconstructivist architect Frank Gehry.

Features

  • works with plain old javascript objects (and arrays)
  • does not re-instantiate objects (but it may in the future)
  • does preserve objects containing cycles

Methods

  • teleporter.flatten(obj): returns an array of flattened objects
  • teleporter.unflatten(flattenedObjectsArray): returns a copy of the original object

FAQs

Package last updated on 12 Apr 2016

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.