Skip to content
Browse files

put multilines in the main example and document

  • Loading branch information...
1 parent d87f7ea commit 73fd1abd1178c7452bb4e470804fcddea384051c @substack committed Mar 8, 2012
Showing with 11 additions and 4 deletions.
  1. +9 −2 README.markdown
  2. +1 −1 examples/beep.js
  3. +1 −1 package.json
View
11 README.markdown
@@ -27,7 +27,7 @@ var s = archy({
'human'
]
},
- 'party!'
+ 'party\ntime!'
]
}
]
@@ -46,7 +46,8 @@ beep
│ │ ├── hello
│ │ └── puny
│ └── human
- └── party!
+ └── party
+ time!
```
methods
@@ -67,6 +68,12 @@ array of the descendents of the current node.
If a node is a string, that string will be used as the `'label'` and an empty
array of `'nodes'` will be used.
+`prefix` gets prepended to all the lines and is used by the algorithm to
+recursively update.
+
+If `'label'` has newlines they will be indented at the present indentation level
+with the current prefix.
+
install
=======
View
2 examples/beep.js
@@ -16,7 +16,7 @@ var s = archy({
'human'
]
},
- 'party!'
+ 'party\ntime!'
]
}
]
View
2 package.json
@@ -1,6 +1,6 @@
{
"name" : "archy",
- "version" : "0.0.0",
+ "version" : "0.0.1",
"description" : "render nested hierarchies `npm ls` style with unicode pipes",
"main" : "index.js",
"directories" : {

0 comments on commit 73fd1ab

Please sign in to comment.
Something went wrong with that request. Please try again.