ssh2 icon indicating copy to clipboard operation
ssh2 copied to clipboard

ci: reduce footprint

Open osher opened this issue 1 year ago • 1 comments

This will reduce your node_modules on-disk footprint from 1.8M to 884K, and your package size from 256K to 142K.

Cheers ;)

 $ du -h node_modules/ssh2/
20.0K   node_modules/ssh2/examples
352.0K  node_modules/ssh2/test/fixtures/keyParser
404.0K  node_modules/ssh2/test/fixtures
612.0K  node_modules/ssh2/test
12.0K   node_modules/ssh2/.github/workflows
16.0K   node_modules/ssh2/.github
68.0K   node_modules/ssh2/lib/protocol/crypto/src
140.0K  node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src
144.0K  node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto
148.0K  node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target
24.0K   node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src
28.0K   node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto
36.0K   node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target
44.0K   node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release
48.0K   node_modules/ssh2/lib/protocol/crypto/build/Release/.deps
284.0K  node_modules/ssh2/lib/protocol/crypto/build/Release
4.0K    node_modules/ssh2/lib/protocol/crypto/build/node_gyp_bins
336.0K  node_modules/ssh2/lib/protocol/crypto/build
436.0K  node_modules/ssh2/lib/protocol/crypto
856.0K  node_modules/ssh2/lib/protocol
1.0M    node_modules/ssh2/lib
64.0K   node_modules/ssh2/util
1.8M    node_modules/ssh2/

and the tars:

$ ls -la 
-rw-r--r-- 1 osher osher 256K May  5 19:40 ssh2-1.15.0.before.tgz
-rw-r--r-- 1 osher osher 142K May  5 19:40 ssh2-1.15.0.tgz

osher avatar May 05 '24 16:05 osher

oh - Double-check me - I'm not sure if utils are necessary, lmk if to add it.

osher avatar May 05 '24 16:05 osher

This sort of thing has been suggested before but I'm still not interested in such a change at this time.

mscdex avatar Aug 20 '25 17:08 mscdex