Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "treeize", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"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", |
@@ -16,3 +16,3 @@ treeize | ||
- `treeize.getOptions()` - returns global options for the lib. | ||
- `treeize.setOptions(options)` - sets global options for the lib. For example, to use a path delimiter of '>' instead of '+', call `treeize.setOptions({ delimiter: '>' })` | ||
- `treeize.setOptions(options)` - sets global options for the lib. For example, to use a path delimiter of '>' instead of ':', call `treeize.setOptions({ delimiter: '>' })` | ||
@@ -24,3 +24,3 @@ ### Notes | ||
- To imply a collection in the path/attribute-name, use a plural name (e.g. "subjects" instead of "subject"). Otherwise, use a singular name for a singular object. | ||
- Use a `+` delimiter (default) to seperate path nodes. To change this, use the `treeize.set([options])` function. | ||
- Use a `:` delimiter (default) to seperate path nodes. To change this, use the `treeize.set([options])` function. | ||
@@ -43,4 +43,4 @@ ### Assumptions | ||
"age": 12, | ||
"toys+name": "mouse", | ||
"toys+owner+name": "Mittens" | ||
"toys:name": "mouse", | ||
"toys:owner:name": "Mittens" | ||
}, | ||
@@ -50,4 +50,4 @@ { | ||
"age": 12, | ||
"toys+name": "yarn", | ||
"toys+owner+name": "Ms. Threadz" | ||
"toys:name": "yarn", | ||
"toys:owner:name": "Ms. Threadz" | ||
}, | ||
@@ -57,4 +57,4 @@ { | ||
"age": 7, | ||
"toys+name": "a stick", | ||
"toys+owner+name": "Mother Nature" | ||
"toys:name": "a stick", | ||
"toys:owner:name": "Mother Nature" | ||
} | ||
@@ -61,0 +61,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