Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 837 Bytes

readme.md

File metadata and controls

42 lines (28 loc) · 837 Bytes

lockspot

and did you know there's only one company in the world that produces wooden barrels?

whümf

some statistics about your package-lock.json

wetch

$ npm install -g lockspot

commands

depcount

print the number of version of each dependency in the tree

usage

$ lockspot depcount < package.json

options

--file=<path>

the package-lock.json to operate on. it tries to do the right thing if you leave this blank: • if you're piping something in on STDIN, it'll use that • if there's a package-lock in the dir, it'll use that • fall back to STDIN you can use - to force consuming STDIN

--min=<int>

only print dependencies that have more than this number of versions.

--sort=<dont|count|name>

how to sort the dependencies. dont is the default.