Skip to content

Instantly share code, notes, and snippets.

@luk-
Created March 5, 2013 04:26
Show Gist options
  • Save luk-/5087992 to your computer and use it in GitHub Desktop.
Save luk-/5087992 to your computer and use it in GitHub Desktop.
view repo url and copy to clipboard
function repourl () { npm view $1 repository.url | tee >(pbcopy) ; }
@luk-
Copy link
Author

luk- commented Mar 5, 2013

quick repository url access:

$ repourl [module name]

copies repo url to clipboard but still displays it as stdout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment