Skip to content

Instantly share code, notes, and snippets.

@hughrawlinson
Created January 18, 2019 03:28
Show Gist options
  • Save hughrawlinson/015a87c9927242bbe1f10ec732d8a1e7 to your computer and use it in GitHub Desktop.
Save hughrawlinson/015a87c9927242bbe1f10ec732d8a1e7 to your computer and use it in GitHub Desktop.
Look what you made me do
function p
if test -e ./package-lock.json
npm $argv
else if test -e ./yarn.lock
yarn $argv
else
echo "You haven't used either npm or yarn in this project yet, or this isn't a node directory"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment