4.1.0 • Published 10 months ago

diglett v4.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 months ago

Diglett

Diglett is a command line tool that helps you detect packages with multiple versions in your JavaScript project. It is particularly useful for frontend apps where you want to keep the bundle size down.

Usage

By default diglett will ignore packages not imported by dependencies defined in the dependencies field of your package.json. If duplicate resolved packages found it will exit with code 1 and output the resolved versions:

Found 1 duplicate dependency
@material/animation with versions 3.1.0, 4.0.0.

npm projects

npx diglett npm <optional path to project>

Yarn projects

npx diglett yarn <optional path to project>

Supports both yarn v1 and yarn berry.

Yarn workspaces

npx diglett yarn-workspace <optional path to project> [--package <package name>]

By default all workspace packages are analyzed. If you just want to analyze one, pass the --package option with the package name – not folder name. It's possible to pass the --package option multiple times to analyze multiple packages.

Supports both yarn v1 and yarn berry.

General options

NameDescriptionDefault
--filter <regex>Ignores packages except those matching the regular expression.None
--allChecks all packages defined in package.json.false
--devAlso checks packages in the devDependencies field.false
--optionalAlso checks packages in the optionalDependencies field.false
--peerAlso checks packages in the peerDependencies field.false

Prior work

License

Copyright 2020 Joel Arvidsson. MIT licensed, see LICENSE file.

4.1.0

10 months ago

4.0.1

2 years ago

4.0.0

3 years ago

3.0.0

3 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago