Created
May 23, 2019 12:55
-
-
Save neatshell/a55f3f766f3643317fc66388806063e3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Retrieve the arguments passed to an npm/yarn script | |
ARGV=$(echo "console.log(JSON.parse(process.argv[2]).original.splice(1, Infinity).join(' '))" | node - ${npm_config_argv}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment