wtfwith
v3.0.1
Published
Check your lock file for repeated dependencies with different versions
Downloads
52
Readme
WTF WITH
wtfwith
is a module we were all waiting for!
It checks your node_modules
for repeated dependencies with different versions.
Installation
Not required, use npx
. Or run npm i -g wtfwith
if you really want.
Usage
Change to your project directory:
cd /your/project/dir
;Check that you have
node_modules
there (orrun npm i
);Run
npx wtfwith moduleName
ornpx wtfwith everything
!Enjoy!
More options
You can use any module name, or my favorite command:
npx wtfwith everything
!Use
npm prune
to check production-only deps.Use
--min x
option to check for more thenx
duplicates of dependencies.
Live example
Changelog
3.0.0
Analyzenode_modules
instead of lock file. Much simpler, much better.2.0.2
some fixes to show more deps2.0.1
some fixes for broken semver and hardcore package locks2.0.0
support for new npm lock format with loose deps1.1.1
,1.1.2
: some more tests and decomposition1.1.0
: added support fornpm-shrinkwrap.json
1.0.20
: many small fixes