psrn
v1.15.0
Published
Advanced npm package script runner - make package script suck less
Readme
psrn - Packagefile Script RuNner
Psrn (psrn) is a command line utility to help with running packagefile scripts after you (or someone else) created them. In my experience this is the workflow for scripts in a node package after a while:
- Try to remember what the scripts were you created
- Go read the package file (or run
npm run-scriptsif you remember) - Copy/paste the script name you want
- Repeat
What if we could do it better?
psrn.
Setup
npm install -g psrn
That's it.
Running psrn
Visit your favorite local node package repository and...
> psrn
You'll get a helpful interface and all the scripts will be at your fingertips.
Additional arguments
--argumentsor-a: Have psrn prompt you for additional arguments to pass through--helpor-h: Display help information--longor-l: By default psrn just shows the script names. This displays everything--set-runner: Set default script runner (npm or yarn)--version: Print current psrn version--yarnor-y: Use yarn as the script runner--: Type--followed by a space and then start typing arguments. They'll pass through directly
Todo
- [ ] Clean up the sheer number of magic strings
