Skip to content

Commit 477a76a

Browse files
committed
fix typo
1 parent 5429e4a commit 477a76a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ convert one tree.
99
var tree = new AsciiTree(BytesLine.getArray("hello")).convert();
1010
assert.equal("└── hello", tree.toString());
1111
// 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();
1313
assert.equal("└── hello", tree.toString());
1414

1515
tree.toBufferArray();

README_ZH.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
var tree = new AsciiTree(BytesLine.getArray("hello")).convert();
1010
assert.equal("└── hello", tree.toString());
1111
// 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();
1313
assert.equal("└── hello", tree.toString());
1414

1515
tree.toBufferArray();
@@ -90,7 +90,7 @@ out:
9090
.pipe(treeStream()) // 将单一行直接传递下去,将树块转换之后传递
9191
.pipe(unwrapStream()) // 扁平化成Buffer
9292
.pipe(dst);
93-
93+
9494
//or define a function
9595
function treepipe(src) {
9696
return src.pipe(splitterStream()) //to BytesLine

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "my-ascii-tree",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "convert indented line block to an ascii directory tree",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)