Comparing version 0.0.10 to 0.0.11
{ | ||
"name": "treeize", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Converts tabular row data (as from SQL joins, flat JSON, etc) to deep tree graphs based on simple column naming conventions.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/treeize.js", |
@@ -53,3 +53,3 @@ treeize | ||
of movies (complete with a first entry) instead. For root nodes, include only | ||
the attribute name without and preceding paths. If you were creating a final output of a | ||
the attribute name without any preceding paths. If you were creating a final output of a | ||
book collection for instance, the title of the book would likely be pathless as you would want the | ||
@@ -66,7 +66,22 @@ value on the high-level collection `book` object. | ||
{ | ||
"title": "Ender's Game", // creates the first object with a title attribute of "Ender's Game" | ||
"author:name": "Orson Scott Card", // adds an author object (with name) to the book "Ender's Game" (created above) | ||
"author:age": 21, // gives the author object an age attribute | ||
"author:otherBooks:name": "Ender's Shadow", // adds a collection named "otherBooks" to the author, with a first object of "name": "Ender's Shadow" | ||
"title": "Ender's Game", // creates the first object with a title attribute of "Ender's Game" | ||
"author:name": "Orson Scott Card", // adds an author object (with name) to the book "Ender's Game" (created above) | ||
"author:age": 21, // gives the author object an age attribute | ||
"author:otherBooks:title": "Ender's Shadow", // adds a collection named "otherBooks" to the author, with a first object of "title": "Ender's Shadow" | ||
} | ||
// creates the following... | ||
[ | ||
{ | ||
title: "Ender's Game", | ||
author: { | ||
name: "Orson Scott Card", | ||
age: 21, | ||
otherBooks: [ | ||
{ title: "Ender's Shadow" } | ||
] | ||
} | ||
} | ||
] | ||
``` | ||
@@ -73,0 +88,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17783
299