A simple npm script palette for lazy people who want a quick way to look through and pick npm scripts!
- keyboard navigation
- autocompletion
- fuzzy finding
- bookmarks
Install globally
npm install -g scriptpalscriptpalUsage with npx
npx scriptpal--nowelcome,-nOmit welcome message--last,-lRun previous command--version,-vVersion number--clipboard,-cCopy command to clipboard--helpHelp me 🙏list,lsList local npm scripts frompackage.jsonbookmark add <name> <command...>Add a bookmarkbookmark edit <name> <command...>Edit a bookmarkbookmark remove <name>,bookmark rm <name>Remove a bookmarkbookmark list,bookmark lsList bookmarksbookmark run <name> [name=value ...]Run a bookmark and resolve wildcardsbookmarkOpen a fuzzy-findable bookmark picker and run selection
It's possible to also run arbitrary scripts from your package.json by passing them as sub-commands, similar to yarn.
For example: scriptpal test will run npm run test.
list List all scripts found in local package.json.
Store reusable command bookmarks globally.
Wildcards use ${name} syntax and are resolved when running bookmarks.
If a required wildcard is not provided, ScriptPal prompts for it.
$ scriptpal=> Shows a prompt containing a list of npm scripts from the closestpackage.json.$ scriptpal --last=> Runs the previous command$ scriptpal list/$ scriptpal ls=> Prints all npm scripts from the closestpackage.json.$ scriptpal start=> Runsnpm run start. Can be used with other scripts as well.$ scriptpal bookmark add testpkg "yarn test src/packages/${package}"=> Saves a bookmark.$ scriptpal bookmark run testpkg package=ui-button=> Runsyarn test src/packages/ui-button.$ scriptpal bookmark ls=> Lists bookmarks.$ scriptpal bookmark=> Opens fuzzy picker for saved bookmarks and runs selected one.

