Skip to content

Instantly share code, notes, and snippets.

@lonnelars
Created June 9, 2017 06:46
Show Gist options
  • Save lonnelars/36553e0396bf7ae48577cf813e3ffb08 to your computer and use it in GitHub Desktop.
Save lonnelars/36553e0396bf7ae48577cf813e3ffb08 to your computer and use it in GitHub Desktop.
List available npm tasks. Assumes package.json exists in cwd. Assumes jq is installed (https://stedolan.github.io/jq/)
#!/usr/bin/env bash
jq '.scripts | keys' package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment