Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
cloud-disk-usage
Advanced tools
Command line utility which displays the size of folders (recursively) and files in your cloud storage (e.g. Dropbox and more).
Command line utility which displays the size of folders (recursively) and files in your cloud storage (e.g. Dropbox and more). Inspired by the du
(disk usage) command.
Supports Dropbox, Github, FTP, SFTP, Webdav, NextCloud, OwnCloud with oauth when available.
This is an efficient way to explore your online storage to know where the space is being wasted, giving you an idea of where to start cleaning.
Roadmap
cdu SERVICE FILE [OPTION]...
Possible values of the service
option (case insensitive):
description | Service |
---|---|
Dropbox | Dropbox |
local file system | fs |
FTP | FTP |
SFTP | SFTP |
Github | Github |
NextCloud/Owncloud (with webdav) | webdav |
Available options
-a
, --all
: write counts for all files, not just directories-h
, --human-readable
: print sizes in human readable format (e.g., 1K 234M 2G)Install the npm package
$ npm install -g cloud-disk-usage
Scan the local Documents
folder
$ cdu fs ~/Videos
9568 /home/lexoyo/Videos/Webcam
116751 /home/lexoyo/Videos/peek
1852703 /home/lexoyo/Videos
With options
$ cdu fs ~/Videos -ah
9.6 M /home/lexoyo/Videos/Webcam/2018-07-24-185812.webm
9.6 M /home/lexoyo/Videos/Webcam
7.6 M /home/lexoyo/Videos/peek/output.gif
7.6 M /home/lexoyo/Videos/peek
250.5 M /home/lexoyo/Videos/hover.gif
750.5 M /home/lexoyo/Videos/merge.gif
7.1 k /home/lexoyo/Videos/scrollbars.gif
1.0 G /home/lexoyo/Videos
Scan remote folders:
$ cdu dropbox Photos
$ cdu ftp www
$ cdu github repo1/master/
for example the command cdu dropbox Photos
will output something like this
2075407 Photos/Sample Album
2075407 Photos
$ npm i
Scan the local Documents
folder
$ node ./lib/ fs ~/Documents
FAQs
Command line utility which displays the size of folders (recursively) and files in your cloud storage (e.g. Dropbox and more).
We found that cloud-disk-usage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.