Skip to content

Add filters for jq and npm install #3859

Description

@SurendraRajaB

Feature request

`rtk discover` flagged these as top unhandled commands in real usage (from Claude Code session history):

Command Count Example
npm install 2 npm install (raw, unfiltered output)
jq 2 `jq -e '.hooks.PreToolUse[]

npm install

Currently falls through unfiltered. Would be good to have rtk npm install (or auto-detected under the existing rtk npm subcommand) compact the install output similar to rtk pnpm install, which already reports ~90% savings.

jq

jq output is often large JSON that could benefit from the same key-only / compact-value treatment rtk json already does for JSON files. A rtk jq <args> wrapper (or auto-routing through the existing rtk json filter) would help here.

Happy to provide more example invocations/output if useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions