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

tree-flatter

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

tree-flatter - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "tree-flatter",
"version": "1.0.0",
"version": "1.0.1",
"description": "Transforms a nested tree structure into a flat list, each item has it's children reference and parent reference.",

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

@@ -11,3 +11,2 @@ # tree-flatter

## Installation

@@ -87,7 +86,6 @@

const options = {
initNode: node => node[0], // <= default, consider node => _.clone(node) to avoid mutating the tree
};
const list = treeFlatter(tree, 'children', options);ÏÏÏÏÏ
const list = treeFlatter(tree, , {
idKey: 'objectID',
itemsKey: 'layers',
);
```

@@ -94,0 +92,0 @@

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