Skip to content

Commit ccf1e95

Browse files
committed
docco
add notes and example data structure
1 parent 1a17e4b commit ccf1e95

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## domain-tree
22

3-
Store domain data in a tree structure
3+
Store domain data in a tree structure that maintains links to parent and sub domains.
4+
5+
The intention is sub domains can query data for their parents and use it, if required.
46

57
[![Build status](https://badge.buildkite.com/1745a99401bdd68a6331273b5f95a62d8c2cdae5e6e338c3ef.svg)](https://buildkite.com/deployable/domain-tree-test)
68

@@ -19,4 +21,23 @@ Store domain data in a tree structure
1921
console.log( tree )
2022
console.log( tree.toJSON() )
2123

24+
Results in a structure:
25+
26+
com:
27+
domain: 'com'
28+
subdomain:
29+
whatever:
30+
domain: 'whatever.com'
31+
subdomain:
32+
test:
33+
domain: 'test.whatever.com'
34+
_data: test: true
35+
two:
36+
domain: 'two.whatever.com'
37+
_data: two: true
38+
other:
39+
domain: 'other.com'
40+
_data: other: true
41+
42+
2243
Matt Hoyle - [email protected]

0 commit comments

Comments
 (0)