Last active
August 6, 2020 17:11
-
-
Save benjaminsehl/7c77c23f2acd03aca53b675045848ace to your computer and use it in GitHub Desktop.
Zsh alias to print the scripts from a package.json file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias scripts="pcregrep -M '(?<=scripts\":\s)(.|\n)*?(?=\n\s*},)' package.json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment