https://github.com/cmstead/psrn
Packagefile Script RuNner - a helper utility to simplify running package scripts
https://github.com/cmstead/psrn
Last synced: 2 months ago
JSON representation
Packagefile Script RuNner - a helper utility to simplify running package scripts
- Host: GitHub
- URL: https://github.com/cmstead/psrn
- Owner: cmstead
- License: mit
- Created: 2025-01-13T07:50:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-24T01:13:40.000Z (over 1 year ago)
- Last Synced: 2025-01-24T02:21:53.412Z (over 1 year ago)
- Language: JavaScript
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
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:
1. Try to remember what the scripts were you created
2. Go read the package file (or run `npm run-scripts` if you remember)
3. Copy/paste the script name you want
4. 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
- `--arguments` or `-a` : Have psrn prompt you for additional arguments to pass through
- `--help` or `-h` : Display help information
- `--long` or `-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
- `--yarn` or `-y` : Use yarn as the script runner
- `-- ` : Type `--` followed by a space and then start typing arguments. They'll pass through directly