Skip to content

Instantly share code, notes, and snippets.

@NoriSte
Last active May 9, 2019 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NoriSte/c9edb4e56dce4a609b1df3265fbb13af to your computer and use it in GitHub Desktop.
Save NoriSte/c9edb4e56dce4a609b1df3265fbb13af to your computer and use it in GitHub Desktop.
list-package-json-scripts

Listing package.json scripts

The listing in action

See the Jaga's post and the installation instructions.

All you need is

  • install JQ
brew install jq
  • paste this snippet into the ~/.zshrc file
function scripts() {
     cat package.json | jq -r '.scripts'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment