Skip to content

Instantly share code, notes, and snippets.

@domanskyi
Last active May 27, 2024 12:12
Show Gist options
  • Save domanskyi/cde3f0442bcf9680286143bc2bd390b0 to your computer and use it in GitHub Desktop.
Save domanskyi/cde3f0442bcf9680286143bc2bd390b0 to your computer and use it in GitHub Desktop.
package.json script with ordered params (MacOS, Linux)

Usage:

npm run example "hi there!"

reference

"scripts": {
"example": "run() { echo $1; }; run",
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment