--allowed-schemes to allow git+https: or git+ssh:--allowed-urls--allowed-urls--validate-https with git dependencies (must use --allowed-schemes)Example:
lockfile-lint --path yarn.lock --allowed-hosts yarn github.com --allowed-schemes "https:" "git+https:"file:../local-package) require --empty-hostname true (default)--empty-hostname false to reject file dependenciesfile:// scheme which requires --allowed-schemes "file:" if not using defaultExample:
# Allow file dependencies (default)
lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm
# Reject file dependencies
lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm --empty-hostname false@org/package) are validated the same as unscoped packagesnpm:package@version) require --allowed-package-name-aliases"alias-name:resolved-name" in aliases array--validate-package-names for alias validation to workExample:
lockfile-lint --path package-lock.json --allowed-hosts npm --validate-package-names --allowed-package-name-aliases "string-width-cjs:string-width"--type to explicitly specify type for each validation--type is specified per commandExample:
# Separate commands
lockfile-lint --path "packages/**/package-lock.json" --type npm --validate-https --allowed-hosts npm
lockfile-lint --path "packages/**/yarn.lock" --type yarn --validate-https --allowed-hosts npm--allowed-hosts--allowed-schemesExample:
lockfile-lint --path package-lock.json --allowed-hosts npm "registry.mycompany.com" --validate-https--integrity-excludeExample:
lockfile-lint --path package-lock.json --validate-integrity --integrity-exclude "legacy-package" "another-package"--allowed-package-name-aliases when using --validate-package-names"package-name:npm:package@version" or just the alias nameExample:
lockfile-lint --path package-lock.json --allowed-hosts npm --validate-package-names --allowed-package-name-aliases "my-package:npm:other-package@1.0.0""packages/**/package-lock.json"Example:
# Correct - quoted glob pattern
lockfile-lint --path "packages/**/package-lock.json" --validate-https --allowed-hosts npm
# Incorrect - unquoted glob pattern may expand incorrectly
lockfile-lint --path packages/**/package-lock.json --validate-https --allowed-hosts npm