File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ convert one tree.
9
9
var tree = new AsciiTree (BytesLine .getArray (" hello" )).convert ();
10
10
assert .equal (" └── hello" , tree .toString ());
11
11
// or use builder helper.
12
- var tree = new AsciiTreeBuilder ().withString (" hello" ).withEncode (" UTF-8" ).build ().convert ();
12
+ var tree = new AsciiTreeBuilder ().withContent (" hello" ).withEncode (" UTF-8" ).build ().convert ();
13
13
assert .equal (" └── hello" , tree .toString ());
14
14
15
15
tree .toBufferArray ();
Original file line number Diff line number Diff line change 9
9
var tree = new AsciiTree (BytesLine .getArray (" hello" )).convert ();
10
10
assert .equal (" └── hello" , tree .toString ());
11
11
// or use builder helper.
12
- var tree = new AsciiTreeBuilder ().withString (" hello" ).withEncode (" UTF-8" ).build ().convert ();
12
+ var tree = new AsciiTreeBuilder ().withContent (" hello" ).withEncode (" UTF-8" ).build ().convert ();
13
13
assert .equal (" └── hello" , tree .toString ());
14
14
15
15
tree .toBufferArray ();
90
90
.pipe (treeStream ()) // 将单一行直接传递下去,将树块转换之后传递
91
91
.pipe (unwrapStream ()) // 扁平化成Buffer
92
92
.pipe (dst);
93
-
93
+
94
94
// or define a function
95
95
function treepipe (src ) {
96
96
return src .pipe (splitterStream ()) // to BytesLine
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " my-ascii-tree" ,
3
- "version" : " 1.0.7 " ,
3
+ "version" : " 1.0.8 " ,
4
4
"description" : " convert indented line block to an ascii directory tree" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments