{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/10331","labels_url":"https://api.github.com/repos/npm/npm/issues/10331/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/10331/comments","events_url":"https://api.github.com/repos/npm/npm/issues/10331/events","html_url":"https://github.com/npm/npm/pull/10331","id":116141532,"number":10331,"title":"add \"-offline\" shorthand for \"--cache-min 999999\"","user":{"login":"lewiscowper","id":593574,"avatar_url":"https://avatars.githubusercontent.com/u/593574?v=3","gravatar_id":"","url":"https://api.github.com/users/lewiscowper","html_url":"https://github.com/lewiscowper","followers_url":"https://api.github.com/users/lewiscowper/followers","following_url":"https://api.github.com/users/lewiscowper/following{/other_user}","gists_url":"https://api.github.com/users/lewiscowper/gists{/gist_id}","starred_url":"https://api.github.com/users/lewiscowper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewiscowper/subscriptions","organizations_url":"https://api.github.com/users/lewiscowper/orgs","repos_url":"https://api.github.com/users/lewiscowper/repos","events_url":"https://api.github.com/users/lewiscowper/events{/privacy}","received_events_url":"https://api.github.com/users/lewiscowper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-10T16:20:49Z","updated_at":"2015-11-11T15:00:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/npm/npm/pulls/10331","html_url":"https://github.com/npm/npm/pull/10331","diff_url":"https://github.com/npm/npm/pull/10331.diff","patch_url":"https://github.com/npm/npm/pull/10331.patch"},"body":"I was going through @ashleygwilliams's [slides](http://ashleygwilliams.github.io/you-dont-know-npm) and came across [slide 15](http://ashleygwilliams.github.io/you-dont-know-npm/#15) where I discovered how to install a package from the cache, which is super helpful.\r\n\r\nShe suggested adding an alias of `--offline`, so I thought I'd explore the possibility that this PR would solve that problem. Although it does appear that it will actually shorthand to `-offline` which isn't quite what was suggested. Maybe there's another way of doing this to maintain the double dash syntax for full words that'd be better in this case, and if so, please let me know whether I can do this inside this PR.\r\n\r\nHappy to close this if there's a totally different way of doing it, and I'm more than happy to add tests, but I couldn't find any other tests to test whether the shorthands expanded to the intended arguments, so I figured it's not seen as a useful unit test, which is reasonable."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/155805133","html_url":"https://github.com/npm/npm/pull/10331#issuecomment-155805133","issue_url":"https://api.github.com/repos/npm/npm/issues/10331","id":155805133,"user":{"login":"lewiscowper","id":593574,"avatar_url":"https://avatars.githubusercontent.com/u/593574?v=3","gravatar_id":"","url":"https://api.github.com/users/lewiscowper","html_url":"https://github.com/lewiscowper","followers_url":"https://api.github.com/users/lewiscowper/followers","following_url":"https://api.github.com/users/lewiscowper/following{/other_user}","gists_url":"https://api.github.com/users/lewiscowper/gists{/gist_id}","starred_url":"https://api.github.com/users/lewiscowper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewiscowper/subscriptions","organizations_url":"https://api.github.com/users/lewiscowper/orgs","repos_url":"https://api.github.com/users/lewiscowper/repos","events_url":"https://api.github.com/users/lewiscowper/events{/privacy}","received_events_url":"https://api.github.com/users/lewiscowper/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T15:00:29Z","updated_at":"2015-11-11T15:00:29Z","body":"Hi @iarna. I'd had a look through the wiki, and found your experiments. Thanks so much for them (and for publicising their existence), they are nice little explorations into a specific thing. I'm going to have a look into them over the next few evenings.\r\n\r\nCan I ask though, is there a preferred way to run a local version of npm itself? I'd be worried of breaking something in npm completely, and then it being linked to my global npm install and having to do some acrobatics to fix it."}}