pnpm add *

built-in
-782.3% Savings
1 Commands
-1807 Tokens saved
2 Tests

Install

tokf install b8011532cf907b22e8efe21df0b8e64a3cee28d744ed024d7de0a4a072a470c0
Safety checks passed

Filter definition

command = "pnpm add *"
description = "Strip download progress; show added packages"
skip = [
  "^\\s*Progress:",
  "^\\s*Downloading",
  "^\\s*Already up to date",
]

[on_success]
output = "{output}"

[on_failure]
tail = 10

Examples

package not found shows error ~20 tokens → ~20 tokens
Raw output
 ERR_PNPM_NO_MATCHING_VERSION  No matching version found for nonexistent-pkg@latest
Filtered output
 ERR_PNPM_NO_MATCHING_VERSION  No matching version found for nonexistent-pkg@latest
pnpm add strips progress and shows result ~29 tokens → ~15 tokens (48% saved)
Raw output
 Progress: resolved 42, reused 42, downloaded 0, added 1
Packages: +1
+
dependencies:
+ lodash 4.17.21

Done in 892ms
Filtered output
Packages: +1
+
dependencies:
+ lodash 4.17.21

Done in 892ms
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters