{"action":"created","issue":{"url":"https://api.github.com/repos/bower/bower/issues/2310","repository_url":"https://api.github.com/repos/bower/bower","labels_url":"https://api.github.com/repos/bower/bower/issues/2310/labels{/name}","comments_url":"https://api.github.com/repos/bower/bower/issues/2310/comments","events_url":"https://api.github.com/repos/bower/bower/issues/2310/events","html_url":"https://github.com/bower/bower/issues/2310","id":160015112,"number":2310,"title":"Bower api for list()","user":{"login":"prateekjadhwani","id":2219900,"avatar_url":"https://avatars.githubusercontent.com/u/2219900?v=3","gravatar_id":"","url":"https://api.github.com/users/prateekjadhwani","html_url":"https://github.com/prateekjadhwani","followers_url":"https://api.github.com/users/prateekjadhwani/followers","following_url":"https://api.github.com/users/prateekjadhwani/following{/other_user}","gists_url":"https://api.github.com/users/prateekjadhwani/gists{/gist_id}","starred_url":"https://api.github.com/users/prateekjadhwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prateekjadhwani/subscriptions","organizations_url":"https://api.github.com/users/prateekjadhwani/orgs","repos_url":"https://api.github.com/users/prateekjadhwani/repos","events_url":"https://api.github.com/users/prateekjadhwani/events{/privacy}","received_events_url":"https://api.github.com/users/prateekjadhwani/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-13T18:30:01Z","updated_at":"2016-09-02T12:01:48Z","closed_at":"2016-06-13T21:32:49Z","body":"## QUESTION\r\n\r\nHi Team, I am trying to use bower api to list the packages installed in a particular directory using node.  \r\n\r\nWhen I run it this way\r\n\r\n```javascript\r\n        bower.commands\r\n        .list()\r\n        .on('end', (results) => {\r\n            console.log(results);\r\n        });\r\n```\r\n\r\nit works fine and returns the package name on the root level but \r\n\r\n```javascript\r\n         bower.commands\r\n        .list({paths: './sub-dir/components'})\r\n        .on('end', (results) => {\r\n            console.log(results);\r\n        });\r\n```\r\ndoesnt work and returns an empty object `{}` even though there are bower packages installed in that folder.\r\n\r\nany suggestions?"},"comment":{"url":"https://api.github.com/repos/bower/bower/issues/comments/244356334","html_url":"https://github.com/bower/bower/issues/2310#issuecomment-244356334","issue_url":"https://api.github.com/repos/bower/bower/issues/2310","id":244356334,"user":{"login":"prateekjadhwani","id":2219900,"avatar_url":"https://avatars.githubusercontent.com/u/2219900?v=3","gravatar_id":"","url":"https://api.github.com/users/prateekjadhwani","html_url":"https://github.com/prateekjadhwani","followers_url":"https://api.github.com/users/prateekjadhwani/followers","following_url":"https://api.github.com/users/prateekjadhwani/following{/other_user}","gists_url":"https://api.github.com/users/prateekjadhwani/gists{/gist_id}","starred_url":"https://api.github.com/users/prateekjadhwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prateekjadhwani/subscriptions","organizations_url":"https://api.github.com/users/prateekjadhwani/orgs","repos_url":"https://api.github.com/users/prateekjadhwani/repos","events_url":"https://api.github.com/users/prateekjadhwani/events{/privacy}","received_events_url":"https://api.github.com/users/prateekjadhwani/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T12:01:48Z","updated_at":"2016-09-02T12:01:48Z","body":"Does it work @aemonge  ?\r\nDoes it give you the list of installed packages?"}}
{"actor":{"display_login":"prateekjadhwani"}}