Created
January 18, 2019 03:28
-
-
Save hughrawlinson/015a87c9927242bbe1f10ec732d8a1e7 to your computer and use it in GitHub Desktop.
Look what you made me do
This file contains 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
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