{"url":"https://api.github.com/repos/davglass/license-checker/issues/126","repository_url":"https://api.github.com/repos/davglass/license-checker","labels_url":"https://api.github.com/repos/davglass/license-checker/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/davglass/license-checker/issues/126/comments","events_url":"https://api.github.com/repos/davglass/license-checker/issues/126/events","html_url":"https://github.com/davglass/license-checker/pull/126","id":259188465,"node_id":"MDExOlB1bGxSZXF1ZXN0MTQyMTE3OTEz","number":126,"title":"app - output now includes path to dependency.","user":{"login":"neverendingqs","id":8854618,"node_id":"MDQ6VXNlcjg4NTQ2MTg=","avatar_url":"https://avatars1.githubusercontent.com/u/8854618?v=4","gravatar_id":"","url":"https://api.github.com/users/neverendingqs","html_url":"https://github.com/neverendingqs","followers_url":"https://api.github.com/users/neverendingqs/followers","following_url":"https://api.github.com/users/neverendingqs/following{/other_user}","gists_url":"https://api.github.com/users/neverendingqs/gists{/gist_id}","starred_url":"https://api.github.com/users/neverendingqs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neverendingqs/subscriptions","organizations_url":"https://api.github.com/users/neverendingqs/orgs","repos_url":"https://api.github.com/users/neverendingqs/repos","events_url":"https://api.github.com/users/neverendingqs/events{/privacy}","received_events_url":"https://api.github.com/users/neverendingqs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-20T14:40:12Z","updated_at":"2017-10-19T14:25:00Z","closed_at":"2017-09-20T16:19:26Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/davglass/license-checker/pulls/126","html_url":"https://github.com/davglass/license-checker/pull/126","diff_url":"https://github.com/davglass/license-checker/pull/126.diff","patch_url":"https://github.com/davglass/license-checker/pull/126.patch"},"body":"If a dependency of a dependency has a license we want to dig into, it would be nice to get the exact path of the dependency. Currently, this involves doing a search throughout `node_modules`.\r\n\r\nNot all modules have a license file (which displays the location). This PR should resolve this use case for all modules so the path is always available to the user.\r\n\r\nSample output:\r\n```\r\n├─ yargs@3.10.0\r\n│ ├─ licenses: MIT\r\n│ ├─ repository: https://github.com/bcoe/yargs\r\n│ ├─ publisher: Alex Ford\r\n│ ├─ email: Alex.Ford@CodeTunnel.com\r\n│ ├─ url: http://CodeTunnel.com\r\n│ ├─ path: C:\\my_module\\node_modules\\uglify-js\\node_modules\\yargs\r\n│ └─ licenseFile: C:\\my_module\\node_modules\\uglify-js\\node_modules\\yargs\\LICENSE\r\n```","closed_by":{"login":"davglass","id":32551,"node_id":"MDQ6VXNlcjMyNTUx","avatar_url":"https://avatars2.githubusercontent.com/u/32551?v=4","gravatar_id":"","url":"https://api.github.com/users/davglass","html_url":"https://github.com/davglass","followers_url":"https://api.github.com/users/davglass/followers","following_url":"https://api.github.com/users/davglass/following{/other_user}","gists_url":"https://api.github.com/users/davglass/gists{/gist_id}","starred_url":"https://api.github.com/users/davglass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davglass/subscriptions","organizations_url":"https://api.github.com/users/davglass/orgs","repos_url":"https://api.github.com/users/davglass/repos","events_url":"https://api.github.com/users/davglass/events{/privacy}","received_events_url":"https://api.github.com/users/davglass/received_events","type":"User","site_admin":false}}