npm install

0.0% Savings
0 Commands
0 Tokens saved
2 Tests

Install

tokf install d2a19dc435aa7f9abfda459673a8d3a4b7291da957586b59d343094ec3c26b76
Safety checks passed

Filter definition

command = "npm install"

strip_ansi = true
collapse_empty_lines = true

skip = [
    "^npm warn deprecated",
    "^npm warn ERESOLVE",
    "^npm warn peer dep",
    "^npm warn optional",
    "^npm warn notsup",
    "^npm notice",
    "^npm http ",
    "^\\s*$",
    "run `npm fund`",
    "run `npm audit fix`",
    "To address (all|issues)",
    "packages are looking for funding",
]

keep = [
    "^added \\d+",
    "^removed \\d+",
    "^changed \\d+",
    "^up to date",
    "\\d+ vulnerabilit",
    "(?i)error",
    "^npm ERR!",
]

[on_success]
output = "{output}"

[on_failure]
tail = 30

Examples

failure shows error details ~82 tokens → ~61 tokens (26% saved)
Raw output
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: gw-spa@1.0.0
npm ERR! Found: react@18.2.0
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.0" from some-package@1.0.0
Filtered output
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: gw-spa@1.0.0
npm ERR! Found: react@18.2.0
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.0" from some-package@1.0.0
success filters deprecation warnings and keeps summary ~142 tokens → ~23 tokens (84% saved)
Raw output
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated inflight@1.0.6: This module is not supported
npm notice
npm notice New minor version of npm available! 10.2.3 -> 10.3.0
npm notice Run `npm install -g npm@10.3.0` to update!

added 1423 packages, and audited 1424 packages in 45s

237 packages are looking for funding
  run `npm fund` for details

2 vulnerabilities (1 moderate, 1 high)

To address all issues, run:
  npm audit fix
Filtered output
added 1423 packages, and audited 1424 packages in 45s
2 vulnerabilities (1 moderate, 1 high)
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters