https://github.com/kt3k/join.ts
Join the input file.
https://github.com/kt3k/join.ts
cli deno join
Last synced: 7 months ago
JSON representation
Join the input file.
- Host: GitHub
- URL: https://github.com/kt3k/join.ts
- Owner: kt3k
- License: mit
- Created: 2020-01-08T09:35:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-08T12:29:54.000Z (over 6 years ago)
- Last Synced: 2025-10-04T09:43:42.156Z (7 months ago)
- Topics: cli, deno, join
- Language: TypeScript
- Homepage: https://git.io/join.ts
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# https://git.io/join.ts
> Joins the input.
# Usage
```ts
cat FILE | deno https://git.io/join.ts
```
If the file is like the below:
```
Foo
Bar
Baz
```
Then it outputs like the below:
```shellsession
$ cat File | deno https://git.io/join.ts
FooBarBaz
```
If you want to put characters between lines, then you can use `-s ` option:
```shellsession
$ cat File | deno https://git.io/join.ts -s ,
Foo,Bar,Baz
```
# CLI options
You can see the cli options with the command `deno https://git.io/join.ts -h`:
```
Usage: https://git.io/join.ts [-h|--help] [-s|--sep ] [-k,--keep] [-n|--linebreak]
Options:
-h, --help Show the help message and exit.
-s, --sep Specify the separator of the output. Default is the empty string.
-k, --keep Keep tailing and leading whitespaces in the input. Default is false.
-n, --linebreak Output line break at the end. Default is false
Example:
| deno https://git.io/join.ts
This joins the input and outputs the single line.
| deno https://git.io/join.ts -s ,
This joins the input with comma.
Visit https://github.com/kt3k/join.ts for more examples.
```
# License
MIT