Skip to content

Support for NPM 3+ #4

Description

@siddharthkp

Hey, landed here from (this comment on the npm repo)[https://github.com/npm/npm/issues/10361#issuecomment-247862042]

When I run kit deps in my repo, i only get size of modules in my package.json, not the modules that these depend on internally. Basically, only one level of depth.

Ideally, this should follow the tree down till the last node of the tree to calculate the actual size?
Please correct me if I misunderstood 😄

I'm on node 6.4.0 and npm 3.10.7

Using this on auto-install

auto-install$ kit deps
  glob@7.1.0                 56.6 KB    0.028 seconds
  is-builtin-module@1.0.0    4.56 KB    0.002 seconds
  log-symbols@1.0.2          4.74 KB    0.002 seconds
  ora@0.3.0                  8.73 KB    0.004 seconds
  package-json@2.4.0         7.07 KB    0.003 seconds
  chokidar@1.6.1             78.3 KB    0.039 seconds
  detective-es6@1.1.5        6.12 KB    0.003 seconds
  request@2.74.0             196.45 KB  0.098 seconds
  yargs@6.3.0                211.71 KB  0.105 seconds
  colors@1.1.2               28.77 KB   0.014 seconds
  detective@4.3.2            19.02 KB   0.009 seconds
  sync-exec@0.6.2            14.88 KB   0.007 seconds

Altogether, dependencies weigh in at 636.99 KB

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions