Skip to content

Instantly share code, notes, and snippets.

@Steakeye
Created July 22, 2021 13:32
Show Gist options
  • Save Steakeye/7b15bdfb23522175d5d2ab8d8ffaf02e to your computer and use it in GitHub Desktop.
Save Steakeye/7b15bdfb23522175d5d2ab8d8ffaf02e to your computer and use it in GitHub Desktop.
Run a single line node command to get the scripts listed in package.json
#!/usr/bin/env bash
node -e "console.log(require(require.resolve('./package.json')).scripts)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment