{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/10382","labels_url":"https://api.github.com/repos/npm/npm/issues/10382/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/10382/comments","events_url":"https://api.github.com/repos/npm/npm/issues/10382/events","html_url":"https://github.com/npm/npm/pull/10382","id":116839296,"number":10382,"title":"help: Implement new help message like did-you-mean","user":{"login":"watilde","id":1716463,"avatar_url":"https://avatars.githubusercontent.com/u/1716463?v=3","gravatar_id":"","url":"https://api.github.com/users/watilde","html_url":"https://github.com/watilde","followers_url":"https://api.github.com/users/watilde/followers","following_url":"https://api.github.com/users/watilde/following{/other_user}","gists_url":"https://api.github.com/users/watilde/gists{/gist_id}","starred_url":"https://api.github.com/users/watilde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watilde/subscriptions","organizations_url":"https://api.github.com/users/watilde/orgs","repos_url":"https://api.github.com/users/watilde/repos","events_url":"https://api.github.com/users/watilde/events{/privacy}","received_events_url":"https://api.github.com/users/watilde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-13T19:47:52Z","updated_at":"2015-12-17T11:06:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/npm/npm/pulls/10382","html_url":"https://github.com/npm/npm/pull/10382","diff_url":"https://github.com/npm/npm/pull/10382.diff","patch_url":"https://github.com/npm/npm/pull/10382.patch"},"body":"I just tried to implement https://github.com/npm/npm/issues/4324. Add new message to display suggestions when users run undefined commands and it makes users notice thier typo. I guess this feature makes npm more user-friendly.\r\n\r\nI supported the following three cases:\r\n+ there is no suggestion\r\n+ there is a one suggestion\r\n+ there are some suggestions\r\n\r\ne.g.\r\n\r\nthere is no suggestion:\r\n```\r\n$ npm wombat\r\n\r\nnpm: 'wombat' is not a npm command. See 'npm help'.\r\n```\r\n\r\nthere is a one suggestion:\r\n```\r\n$ npm found\r\n\r\nnpm: 'found' is not a npm command. See 'npm help'.\r\n\r\nDid you mean this?\r\n        find\r\n```\r\n\r\nthere are some suggestions:\r\n```\r\n$ npm life\r\n\r\nnpm: 'life' is not a npm command. See 'npm help'.\r\n\r\nDid you mean one of these?\r\n        link\r\n        list\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/165424201","html_url":"https://github.com/npm/npm/pull/10382#issuecomment-165424201","issue_url":"https://api.github.com/repos/npm/npm/issues/10382","id":165424201,"user":{"login":"msikma","id":1507745,"avatar_url":"https://avatars.githubusercontent.com/u/1507745?v=3","gravatar_id":"","url":"https://api.github.com/users/msikma","html_url":"https://github.com/msikma","followers_url":"https://api.github.com/users/msikma/followers","following_url":"https://api.github.com/users/msikma/following{/other_user}","gists_url":"https://api.github.com/users/msikma/gists{/gist_id}","starred_url":"https://api.github.com/users/msikma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msikma/subscriptions","organizations_url":"https://api.github.com/users/msikma/orgs","repos_url":"https://api.github.com/users/msikma/repos","events_url":"https://api.github.com/users/msikma/events{/privacy}","received_events_url":"https://api.github.com/users/msikma/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T11:06:55Z","updated_at":"2015-12-17T11:06:55Z","body":"I would suggest maybe changing \"is not a npm command\" to \"is not an npm command\" since it sounds a bit nicer. But :+1: for this idea, would be very good to have this!"}}