Skip to content

Commit d9deaa2

Browse files
committed
📝
1 parent 2e64ef1 commit d9deaa2

File tree

4 files changed

+96
-39
lines changed

4 files changed

+96
-39
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
*.swo
33
*~
44
*.log
5-
node_modules
5+
node_modules

README.md

+68-15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
![](http://i.imgur.com/AI9aB44.png)
1+
<!---------------------------------------------------------------------------->
2+
<!-- STOP, LOOK & LISTEN! -->
3+
<!-- ==================== -->
4+
<!-- Do NOT edit this file directly since it's generated from a template -->
5+
<!-- file, using https://github.com/IonicaBizau/node-blah -->
6+
<!-- -->
7+
<!-- If you found a typo in documentation, fix it in the source files -->
8+
<!-- (`lib/*.js`) and make a pull request. -->
9+
<!-- -->
10+
<!-- If you have any other ideas, open an issue. -->
11+
<!-- -->
12+
<!-- Please consider reading the contribution steps (CONTRIBUTING.md). -->
13+
<!-- * * * Thanks! * * * -->
14+
<!---------------------------------------------------------------------------->
15+
16+
[![share-term](http://i.imgur.com/AI9aB44.png)](#)
17+
18+
# `$ share-term` [![Donate now][donate-now]][paypal-donations]
219

3-
# `$ share-term`
420
Share the terminal with your friends.
521

622
It's possible to share it into another terminal or in a browser, both with request
@@ -11,14 +27,43 @@ would be really appreciated. :smile: :heart:
1127

1228
## Installation
1329

30+
You can install the package globally and use it as command line tool:
31+
1432
```sh
15-
$ npm install -g share-term
33+
$ npm i -g share-term
1634
```
1735

18-
For the help content, run:
36+
Then, run `share-term --help` and see what the CLI tool can do.
1937

2038
```sh
21-
$ share-term -h
39+
$ share-term --help
40+
share-term --help
41+
Share the terminal with your friends.
42+
43+
usage: share-term [action] [options]
44+
45+
actions:
46+
get <id> [--control] Connect to a terminal session. If `--control`
47+
options is passed, remote control will be
48+
requested.
49+
welcome <host> <id> This action is used internally when starting
50+
the terminal sharing.
51+
52+
options:
53+
-v, --version Displays version information.
54+
-h, --help Displays this help.
55+
-c, --control Used to request remote control when the client
56+
is connecting from a terminal.
57+
58+
examples:
59+
share-term # Starts a shared terminal session
60+
share-term get <id> # Connects to the terminal session with id <id>
61+
share-term get <id> -c # Connects and asks for remote control in the
62+
# terminal session with id <id>
63+
64+
Documentation can be found at https://github.com/Share-Term/share-term
65+
Support Share Term now: http://share-term.me/support
66+
2267
```
2368

2469
## Usage
@@ -48,17 +93,25 @@ To join a terminal session, having the id `<id>` you have two ways:
4893
```
4994

5095
## Documentation
51-
If you want to use this library as module, check out the [DOCUMENTATION](/DOCUMENTATION.md) file.
96+
97+
For full API reference, see the [DOCUMENTATION.md][docs] file.
5298

5399
## How to contribute
54-
1. File an issue in the repository, using the bug tracker, describing the
55-
contribution you'd like to make. This will help us to get you started on the
56-
right foot.
57-
2. Fork the project in your account and create a new branch:
58-
`your-great-feature`.
59-
3. Commit your changes in that branch.
60-
4. Open a pull request, and reference the initial issue in the pull request
61-
message.
100+
Have an idea? Found a bug? See [how to contribute][contributing].
101+
102+
## Press Highlights
103+
None yet. If you wrote or found an article about this project, [add it][contributing] in this section. :memo:
104+
105+
## Who uses this
106+
If you are using this library in one of your projects, add it in this list. :sparkles:
62107

63108
## License
64-
See the [LICENSE](./LICENSE) file.
109+
[KINDLY][license] © [Ionică Bizău][website]–The [LICENSE](/LICENSE) file contains
110+
a copy of the license.
111+
112+
[license]: http://ionicabizau.github.io/kindly-license/?author=Ionic%C4%83%20Biz%C4%83u%20%[email protected]%3E&year=2015
113+
[contributing]: /CONTRIBUTING.md
114+
[website]: http://ionicabizau.net
115+
[docs]: /DOCUMENTATION.md
116+
[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MG98D7NPFZ3MG
117+
[donate-now]: http://i.imgur.com/6cMbHOC.png

bin/share-term

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ const HOST = "http://share-term.me/";
1717
Logger.config.displayDate = false;
1818
Logger.config.logLevel = 4;
1919

20-
process.stdin.setEncoding("utf8");
21-
process.stdin.setRawMode(true);
22-
20+
if (process.stdin.setRawMode) {
21+
process.stdin.setEncoding("utf8");
22+
process.stdin.setRawMode(true);
23+
}
2324

2425
// CLI options
2526
switch (process.argv[2]) {

package.json

+23-20
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,35 @@
77
"share-term": "./bin/share-term"
88
},
99
"devDependencies": {},
10-
"scripts": {
11-
"test": "echo \"Error: no test specified\" && exit 1"
12-
},
1310
"author": "Ionică Bizău <[email protected]>",
14-
"license": "MIT",
15-
"repository": {
16-
"type": "git",
17-
"url": "https://github.com/IonicaBizau/share-term.git"
18-
},
11+
"license": "KINDLY",
1912
"keywords": [
2013
"share",
2114
"terminal",
2215
"client"
2316
],
24-
"bugs": {
25-
"url": "https://github.com/IonicaBizau/share-term/issues"
26-
},
27-
"homepage": "https://github.com/IonicaBizau/share-term",
2817
"dependencies": {
29-
"ctrl-c": "^1.1.0",
18+
"bug-killer": "^4.0.0",
19+
"cli-resize": "^1.0.0",
20+
"ctrl-c": "^2.0.0",
21+
"oargv": "^2.0.0",
3022
"open": "^0.0.5",
31-
"bug-killer": "^1.0.0",
32-
"pty.js": "^0.2.7",
33-
"socket.io-client": "^1.3.5",
34-
"ul": "^2.1.0",
35-
"oargv": "^1.2.0",
36-
"cli-resize": "^1.0.0"
23+
"pty.js": "^0.3.0",
24+
"socket.io-client": "^1.3.7",
25+
"ul": "^5.0.0"
26+
},
27+
"scripts": {
28+
"test": "echo \"Error: no test specified\" && exit 1"
29+
},
30+
"repository": {
31+
"type": "git",
32+
"url": "git+https://github.com/Share-Term/share-term.git"
33+
},
34+
"bugs": {
35+
"url": "https://github.com/Share-Term/share-term/issues"
36+
},
37+
"homepage": "https://github.com/Share-Term/share-term#readme",
38+
"blah": {
39+
"h_img": "http://i.imgur.com/AI9aB44.png"
3740
}
38-
}
41+
}

0 commit comments

Comments
 (0)