neo-vtop 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ lint:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: actions/setup-node@v4
15
+ with:
16
+ node-version: 20
17
+ cache: yarn
18
+ - run: yarn install --frozen-lockfile
19
+ - run: yarn lint
20
+ - run: yarn prettier --check .
@@ -0,0 +1 @@
1
+ npx lint-staged
package/.npm_ignore ADDED
@@ -0,0 +1 @@
1
+ node_modules
package/.prettierrc ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "semi": false,
3
+ "singleQuote": true,
4
+ "printWidth": 100
5
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,81 @@
1
+ # Changelog
2
+
3
+ ## 1.0.1 - 2025
4
+
5
+ - Forked from vtop
6
+ - Rewritten in TypeScript
7
+ - Replaced `blessed` with `neo-blessed`
8
+ - Updated all dependencies to modern versions
9
+ - Removed auto-updater
10
+ - Added ESLint, Prettier, and Husky
11
+ - ESM support
12
+ - Both `vtop` and `neo-vtop` commands supported
13
+
14
+ ## 0.5.0
15
+
16
+ - Upgrade drawille and blessed deps
17
+
18
+ ## 0.4.10
19
+
20
+ - Fix for issue #2 where people had set a different TERM variable
21
+
22
+ ## 0.4.6
23
+
24
+ - Fix for systems that called the node binary 'nodejs'
25
+
26
+ ## 0.4.0
27
+
28
+ - Add sort by CPU and Memory
29
+
30
+ ## 0.3.3
31
+
32
+ - Fix bug after auto update showing multiple selected items
33
+
34
+ ## 0.3.2
35
+
36
+ - Add colors for item selection to the other themes
37
+
38
+ ## 0.3.1
39
+
40
+ - Add keyboard and mouse support
41
+ - Add killall support
42
+
43
+ ## 0.2.8
44
+
45
+ - Improve Makefile
46
+
47
+ ## 0.2.7 - 2014-06-12
48
+
49
+ - Add Becca theme. http://www.zeldman.com/2014/06/10/the-color-purple/
50
+
51
+ ## 0.2.6 - 2014-06-11
52
+
53
+ - Fix major perf problem that some users were having relating to
54
+ drawing the header for update notifications.
55
+
56
+ ## 0.2.5
57
+
58
+ - Delete old data points to improve performance
59
+
60
+ ## 0.2.4, 0.2.3, 0.2.2 - 2014-06-11
61
+
62
+ - Fixes to the upgrade script
63
+ - Added --version and -V command line arguments for version
64
+
65
+ ## 0.2.0 - 2014-06-11
66
+
67
+ - Add new theme 'dark'
68
+ - Add auto-update mechanism
69
+
70
+ ## 0.1.7 - 2014-06-11
71
+
72
+ - Add a fix for user submitted ps outputs - #5 #6 #7
73
+ - Fix issue with 'NaN' appearing for some users
74
+
75
+ ## 0.1.4 - 2014-06-09
76
+
77
+ - Slice the row strings smaller in table view
78
+
79
+ ## 0.1.0 - 2014-06-08
80
+
81
+ - First release
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 James Hall, Parallax Agency Ltd, 2026 Vincent, NexusOcean
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,98 @@
1
+ # Neo VTop
2
+
3
+ A graphical activity monitor for the command line. A neo fork of [vtop](https://github.com/MrRio/vtop) rewritten in TypeScript with updated dependencies.
4
+
5
+ ![](https://raw.githubusercontent.com/MrRio/vtop/master/docs/example.gif)
6
+
7
+ ## Installation
8
+
9
+ Requires Node.js >= 24.
10
+
11
+ > ⚠️ If you have the legendary [vtop](https://github.com/MrRio/vtop) installed, `neo-vtop` will replace the `vtop` command. Uninstall it first with `npm uninstall -g vtop`, or just let neo-vtop take over — it's more based anyway.
12
+
13
+ ```bash
14
+ npm install -g neo-vtop
15
+ ```
16
+
17
+ If you're on macOS, or get an error about file permissions, you may need to do `sudo npm install -g neo-vtop`. Don't do this if you're using [nvm](https://github.com/nvm-sh/nvm).
18
+
19
+ ## Running
20
+
21
+ ```bash
22
+ neo-vtop
23
+ # or
24
+ vtop
25
+ ```
26
+
27
+ If your muscle memory keeps typing `top`:
28
+
29
+ ```bash
30
+ alias top="vtop"
31
+ alias oldtop="/usr/bin/top"
32
+ ```
33
+
34
+ ## Keyboard shortcuts
35
+
36
+ - Arrow up or `k` — move up the process list
37
+ - Arrow down or `j` — move down
38
+ - Arrow left or `h` — zoom graphs in
39
+ - Arrow right or `l` — zoom graphs out
40
+ - `g` — jump to top of process list
41
+ - `G` — jump to bottom
42
+ - `dd` — kill all processes in that group
43
+ - `c` — sort by CPU
44
+ - `m` — sort by memory
45
+ - `q` / `esc` / `Ctrl+C` — quit
46
+
47
+ ## Mouse control
48
+
49
+ If your terminal supports mouse events (like iTerm) you can click items in the process list and use the scroll wheel. Disable with:
50
+
51
+ ```bash
52
+ neo-vtop --no-mouse
53
+ ```
54
+
55
+ ## Themes
56
+
57
+ ```bash
58
+ neo-vtop --theme wizard
59
+ ```
60
+
61
+ Themes live in the `themes/` folder. Make your own and send a pull request.
62
+
63
+ ```bash
64
+ alias vtop="vtop --theme brew"
65
+ ```
66
+
67
+ ## FAQ
68
+
69
+ ### How does it work?
70
+
71
+ It uses [drawille](https://github.com/madbence/node-drawille) to draw CPU and memory charts with Unicode braille characters. Processes with the same name are grouped together.
72
+
73
+ ### The CPU % looks wrong.
74
+
75
+ CPU is calculated as a percentage of total system power across all cores and HyperThreads. 100% means all cores maxed out — this differs from how Activity Monitor on macOS reports it.
76
+
77
+ ### What about measuring server req/s, log entries, etc?
78
+
79
+ It's on the list. Feel free to send a pull request — check out the `sensors/` folder.
80
+
81
+ ### What license is this under?
82
+
83
+ MIT — do what you like with it.
84
+
85
+ ## Contributing
86
+
87
+ Fork, clone, then:
88
+
89
+ ```bash
90
+ yarn install
91
+ yarn start
92
+ ```
93
+
94
+ ESLint and Prettier run on commit via Husky. Make sure `yarn lint` passes before opening a PR.
95
+
96
+ ## Credits
97
+
98
+ Originally created by [James Hall](https://github.com/MrRio/vtop). Modernized and maintained by [nexusocean8](https://github.com/nexusocean8/neo-vtop).