Skip to content

add field sizeOnDisk? #23

@vogler

Description

@vogler

It would be nice to have another field that shows the size on disk of a package in node_modules as there can be quite big differences:

$ howfat picocolors
picocolors@1.0.0 (5.52kb, 7 files, ©ISC)
$ du -sh node_modules/picocolors
28K	node_modules/picocolors

https://www.npmjs.com/package/picocolors shows 5.66kB for 'Unpacked Size' - I don't know what data howfat uses.

This is of course only possible if the package is installed locally.
The size on disk could be shown by default when running

  • howfat . and ./node_modules exists, or
  • howfat x and ./node_modules/x exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions