srn
v1.0.2
Published
Smart package.json script runner with direct mode, fuzzy fallback, and workspace support.
Maintainers
Readme
srn
Smart package.json script runner
Run scripts directly by name, across workspaces, or fall back to fuzzy search when you don’t remember the exact command.
Usage
pnpx srnFeatures
- Interactive fuzzy search - Quickly find and run scripts with autocomplete
- Workspace support - Works seamlessly with monorepos and single projects
- Smart sorting - Frequently used scripts appear first
- Direct execution - Run scripts directly by name without prompting
- History tracking - Remembers your most-used scripts per project
Installation
pnpm add -D srnCLI Options
srn - Smart package.json script runner
Usage:
srn Interactive mode - fuzzy find and select script
srn <script> Run a script from package.json
srn [workspace] <script> Run a script in a specific workspace
Options:
-h, --help Show this help message
-v, --version Show version numberExamples
# Interactive mode - select from all available scripts
pnpx srn
# Run a specific script
pnpx srn build
# Run a script in a workspace (monorepo)
pnpx srn my-workspace build
# Fuzzy search - type partial name and select from matches
pnpx srn bui
# Run workspace script by workspace folder name
pnpx srn packages/utils test