Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
453 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env -S deno --allow-env | ||
|
||
import { Table } from '../../packages/table/lib/table.ts'; | ||
|
||
Table.from( [ | ||
[ 'Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.', 'cell2', 'cell3' ], | ||
[ 'cell1', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.', 'cell3' ], | ||
[ 'cell1', 'cell2', 'At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.' ] | ||
] ) | ||
.maxCellWidth( 20 ) | ||
.border( true ) | ||
.render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#!/usr/bin/env -S deno --allow-env | ||
|
||
import { Table } from '../../packages/table/lib/table.ts'; | ||
|
||
Table.render( [ [ | ||
Table.from( [ | ||
[ 'sed diam nonumy eirmod tempor invidunt ut labore.', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 20 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr.', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 20 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 20 ) | ||
.border( true ) | ||
.toString() | ||
], [ | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'takimata sanctus est Lorem ipsum.', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 20 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'Stet clita kasd gubergren, no sea takimata.', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 20 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'sanctus est Lorem ipsum dolor sit.' ] | ||
] ) | ||
.maxCellWidth( 20 ) | ||
.border( true ) | ||
.toString() | ||
], [ | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'sed diam nonumy eirmod tempor invidunt ut labore.', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 20 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'accusam et justo duo.' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 20 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'Stet clita kasd gubergren, no sea takimata.', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 20 ) | ||
.border( true ) | ||
.toString() | ||
] ] ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
#!/usr/bin/env -S deno --allow-env | ||
|
||
import { Table } from '../../packages/table/lib/table.ts'; | ||
|
||
Table.from( [ [ | ||
Table.from( [ | ||
[ 'sed diam nonumy eirmod tempor invidunt ut labore.', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.padding( 1 ) | ||
.maxCellWidth( 20 ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr.', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.padding( 1 ) | ||
.maxCellWidth( 20 ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.padding( 1 ) | ||
.maxCellWidth( 20 ) | ||
.toString() | ||
], [ | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'takimata sanctus est Lorem ipsum.', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.padding( 1 ) | ||
.maxCellWidth( 20 ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'Stet clita kasd gubergren, no sea takimata.', 'cell2', 'cell3' ] | ||
] ) | ||
.padding( 1 ) | ||
.maxCellWidth( 20 ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'sanctus est Lorem ipsum dolor sit.' ] | ||
] ) | ||
.padding( 1 ) | ||
.maxCellWidth( 20 ) | ||
.toString() | ||
], [ | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'sed diam nonumy eirmod tempor invidunt ut labore.', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.padding( 1 ) | ||
.maxCellWidth( 20 ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'accusam et justo duo.' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.padding( 1 ) | ||
.maxCellWidth( 20 ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'Stet clita kasd gubergren, no sea takimata.', 'cell2', 'cell3' ] | ||
] ) | ||
.padding( 1 ) | ||
.maxCellWidth( 20 ) | ||
.toString() | ||
] ] ) | ||
.padding( 1 ) | ||
.render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env -S deno --allow-env | ||
|
||
import { Table } from '../../packages/table/lib/table.ts'; | ||
|
||
Table.from( [ | ||
[ 'Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.', 'cell2', 'cell3' ], | ||
[ 'cell1', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.', 'cell3' ], | ||
[ 'cell1', 'cell2', 'At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.' ] | ||
] ) | ||
.maxCellWidth( 20 ) | ||
.padding( 1 ) | ||
.render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
#!/usr/bin/env -S deno --allow-env | ||
|
||
import { Table } from '../../packages/table/lib/table.ts'; | ||
|
||
Table.render( | ||
Table.from( [ | ||
[ | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'Justo duo dolores et ea rebum.', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 25 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'Labore et dolore magna aliquyam erat.' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 25 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 25 ) | ||
.border( true ) | ||
.toString() | ||
], | ||
[ | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 25 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'Sed diam nonumy eirmod tempor invidunt ut labore.', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 25 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 25 ) | ||
.border( true ) | ||
.toString() | ||
], | ||
[ | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 25 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 25 ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd.', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren.', 'cell3' ] | ||
] ) | ||
.maxCellWidth( 25 ) | ||
.border( true ) | ||
.toString() | ||
] | ||
] ) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env -S deno --allow-env | ||
|
||
import { Table } from '../../packages/table/lib/table.ts'; | ||
|
||
Table.render( | ||
Table.from( [ | ||
[ 'Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.', 'cell2', 'cell3' ], | ||
[ 'cell1', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.', 'cell3' ], | ||
[ 'cell1', 'cell2', 'At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.' ] | ||
] ) | ||
.indent( 5 ) | ||
.padding( 1 ) | ||
.maxCellWidth( 20 ) | ||
.border( true ) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env -S deno --allow-env | ||
|
||
import { Table } from '../../packages/table/lib/table.ts'; | ||
|
||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.border( true ) | ||
.render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#!/usr/bin/env -S deno --allow-env | ||
|
||
import { Table } from '../../packages/table/lib/table.ts'; | ||
|
||
Table.render( [ [ | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.border( true ) | ||
.toString() | ||
], [ | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.border( true ) | ||
.toString() | ||
], [ | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.border( true ) | ||
.toString(), | ||
Table.from( [ | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ], | ||
[ 'cell1', 'cell2', 'cell3' ] | ||
] ) | ||
.border( true ) | ||
.toString() | ||
] ] ); |
Oops, something went wrong.