Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dujs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dujs

JS porting for DU command

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

DuJS

Installation

npm i -g dujs

Usage

dujs .

╔═══════════════════════════════════════════════╤════════════╗
║ /home/chaksoft/tools/dujs                     │ 54.30 MiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/node_modules        │ 54.09 MiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/.git                │   104 KiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/bin                 │     8 KiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/lib                 │     8 KiB. ║
╚═══════════════════════════════════════════════╧════════════╝

Options

You can specify some options :

-d [depth=1] : Search depth

You can specify the depth of the search for the du command.

dujs -d 2 .

will set the depth to 2.

Be aware that a big depth could make the command take a very long time.

-n : Non human size display

To avoid having a non-human size display (only displaying the number of kilobytes used), set the -n flag.

-r : Reverse sorting

To sort the directories by reversed order (lightest folders first), set the -r flag.

dujs -r .

╔═══════════════════════════════════════════════╤════════════╗
║ /home/chaksoft/tools/dujs/bin                 │     8 KiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/lib                 │     8 KiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/.git                │   104 KiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/node_modules        │ 54.09 MiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs                     │ 54.34 MiB. ║
╚═══════════════════════════════════════════════╧════════════╝

-f : Include all files

Wrapping around the -a flag of the du command. Displays all the files that are scanned, respecting the depth property.

License

This software is licensed with the GPL-v3.0 license. See LICENSE file for further information.

FAQs

Package last updated on 14 Mar 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc