A CLI tool that lets you browse and execute npm, pnpm, yarn, or bun scripts from a local project.
np-run-demo.mp4
- Check for
package.json
in current directory / project - Read file and parse key and values in
scripts
object inpackage.json
- Print scripts to stdout as a list - use BubbleTea
- Detect the package manager - using the lockfile?
- When enter is pressed for a chosen script, that script is run
- Look at how to properly structure a Go program
- Install dependencies if
node_modules
isn't found- Show spinner or progress bar while dependencies are installing
- Print something if multiple lockfiles are found