{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/mihneadb/node-directory-tree/pulls/2","id":35080910,"html_url":"https://github.com/mihneadb/node-directory-tree/pull/2","diff_url":"https://github.com/mihneadb/node-directory-tree/pull/2.diff","patch_url":"https://github.com/mihneadb/node-directory-tree/pull/2.patch","issue_url":"https://api.github.com/repos/mihneadb/node-directory-tree/issues/2","number":2,"state":"closed","locked":false,"title":"Extended library with ignoreList parameter","user":{"login":"JeffreyArts","id":5486548,"avatar_url":"https://avatars.githubusercontent.com/u/5486548?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffreyArts","html_url":"https://github.com/JeffreyArts","followers_url":"https://api.github.com/users/JeffreyArts/followers","following_url":"https://api.github.com/users/JeffreyArts/following{/other_user}","gists_url":"https://api.github.com/users/JeffreyArts/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffreyArts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffreyArts/subscriptions","organizations_url":"https://api.github.com/users/JeffreyArts/orgs","repos_url":"https://api.github.com/users/JeffreyArts/repos","events_url":"https://api.github.com/users/JeffreyArts/events{/privacy}","received_events_url":"https://api.github.com/users/JeffreyArts/received_events","type":"User","site_admin":false},"body":"For a brainfart I'm working on, I would like to iterate through a directory to search for *.js files. This lib is great for using that. But I wanted too exclude certain directories (like the 'node_modules' dir for example). This is why I extended the library with an option 'ignoreList'. This parameter can contain an array with files or directories which should be excluded from the result json object.\r\n\r\nIf you like this feature you could add it to the main branch, otherwise just reject it. No hard feelings ;-)","created_at":"2015-05-10T10:57:54Z","updated_at":"2015-06-24T02:58:07Z","closed_at":"2015-06-24T02:58:07Z","merged_at":null,"merge_commit_sha":"c1e9846212d86774ce958543d4fc09a26b2ee912","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mihneadb/node-directory-tree/pulls/2/commits","review_comments_url":"https://api.github.com/repos/mihneadb/node-directory-tree/pulls/2/comments","review_comment_url":"https://api.github.com/repos/mihneadb/node-directory-tree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mihneadb/node-directory-tree/issues/2/comments","statuses_url":"https://api.github.com/repos/mihneadb/node-directory-tree/statuses/0fa31f86076838160c5351005a9906e4204ac11a","head":{"label":"JeffreyArts:master","ref":"master","sha":"0fa31f86076838160c5351005a9906e4204ac11a","user":{"login":"JeffreyArts","id":5486548,"avatar_url":"https://avatars.githubusercontent.com/u/5486548?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffreyArts","html_url":"https://github.com/JeffreyArts","followers_url":"https://api.github.com/users/JeffreyArts/followers","following_url":"https://api.github.com/users/JeffreyArts/following{/other_user}","gists_url":"https://api.github.com/users/JeffreyArts/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffreyArts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffreyArts/subscriptions","organizations_url":"https://api.github.com/users/JeffreyArts/orgs","repos_url":"https://api.github.com/users/JeffreyArts/repos","events_url":"https://api.github.com/users/JeffreyArts/events{/privacy}","received_events_url":"https://api.github.com/users/JeffreyArts/received_events","type":"User","site_admin":false},"repo":{"id":35330069,"name":"node-directory-tree","full_name":"JeffreyArts/node-directory-tree","owner":{"login":"JeffreyArts","id":5486548,"avatar_url":"https://avatars.githubusercontent.com/u/5486548?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffreyArts","html_url":"https://github.com/JeffreyArts","followers_url":"https://api.github.com/users/JeffreyArts/followers","following_url":"https://api.github.com/users/JeffreyArts/following{/other_user}","gists_url":"https://api.github.com/users/JeffreyArts/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffreyArts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffreyArts/subscriptions","organizations_url":"https://api.github.com/users/JeffreyArts/orgs","repos_url":"https://api.github.com/users/JeffreyArts/repos","events_url":"https://api.github.com/users/JeffreyArts/events{/privacy}","received_events_url":"https://api.github.com/users/JeffreyArts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JeffreyArts/node-directory-tree","description":"Convert a directory tree to a JS object.","fork":true,"url":"https://api.github.com/repos/JeffreyArts/node-directory-tree","forks_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/forks","keys_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/teams","hooks_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/hooks","issue_events_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/issues/events{/number}","events_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/events","assignees_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/assignees{/user}","branches_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/branches{/branch}","tags_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/tags","blobs_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/git/refs{/sha}","trees_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/statuses/{sha}","languages_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/languages","stargazers_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/stargazers","contributors_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/contributors","subscribers_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/subscribers","subscription_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/subscription","commits_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/commits{/sha}","git_commits_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/git/commits{/sha}","comments_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/comments{/number}","issue_comment_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/issues/comments{/number}","contents_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/contents/{+path}","compare_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/merges","archive_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/downloads","issues_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/issues{/number}","pulls_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/pulls{/number}","milestones_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/milestones{/number}","notifications_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/labels{/name}","releases_url":"https://api.github.com/repos/JeffreyArts/node-directory-tree/releases{/id}","created_at":"2015-05-09T13:43:34Z","updated_at":"2015-05-09T13:43:35Z","pushed_at":"2015-05-10T10:43:30Z","git_url":"git://github.com/JeffreyArts/node-directory-tree.git","ssh_url":"git@github.com:JeffreyArts/node-directory-tree.git","clone_url":"https://github.com/JeffreyArts/node-directory-tree.git","svn_url":"https://github.com/JeffreyArts/node-directory-tree","homepage":null,"size":89,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mihneadb:master","ref":"master","sha":"0ce293c9ef0322d1a266f0f094f612132be64b72","user":{"login":"mihneadb","id":643127,"avatar_url":"https://avatars.githubusercontent.com/u/643127?v=3","gravatar_id":"","url":"https://api.github.com/users/mihneadb","html_url":"https://github.com/mihneadb","followers_url":"https://api.github.com/users/mihneadb/followers","following_url":"https://api.github.com/users/mihneadb/following{/other_user}","gists_url":"https://api.github.com/users/mihneadb/gists{/gist_id}","starred_url":"https://api.github.com/users/mihneadb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihneadb/subscriptions","organizations_url":"https://api.github.com/users/mihneadb/orgs","repos_url":"https://api.github.com/users/mihneadb/repos","events_url":"https://api.github.com/users/mihneadb/events{/privacy}","received_events_url":"https://api.github.com/users/mihneadb/received_events","type":"User","site_admin":false},"repo":{"id":17631024,"name":"node-directory-tree","full_name":"mihneadb/node-directory-tree","owner":{"login":"mihneadb","id":643127,"avatar_url":"https://avatars.githubusercontent.com/u/643127?v=3","gravatar_id":"","url":"https://api.github.com/users/mihneadb","html_url":"https://github.com/mihneadb","followers_url":"https://api.github.com/users/mihneadb/followers","following_url":"https://api.github.com/users/mihneadb/following{/other_user}","gists_url":"https://api.github.com/users/mihneadb/gists{/gist_id}","starred_url":"https://api.github.com/users/mihneadb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihneadb/subscriptions","organizations_url":"https://api.github.com/users/mihneadb/orgs","repos_url":"https://api.github.com/users/mihneadb/repos","events_url":"https://api.github.com/users/mihneadb/events{/privacy}","received_events_url":"https://api.github.com/users/mihneadb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mihneadb/node-directory-tree","description":"Convert a directory tree to a JS object.","fork":false,"url":"https://api.github.com/repos/mihneadb/node-directory-tree","forks_url":"https://api.github.com/repos/mihneadb/node-directory-tree/forks","keys_url":"https://api.github.com/repos/mihneadb/node-directory-tree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mihneadb/node-directory-tree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mihneadb/node-directory-tree/teams","hooks_url":"https://api.github.com/repos/mihneadb/node-directory-tree/hooks","issue_events_url":"https://api.github.com/repos/mihneadb/node-directory-tree/issues/events{/number}","events_url":"https://api.github.com/repos/mihneadb/node-directory-tree/events","assignees_url":"https://api.github.com/repos/mihneadb/node-directory-tree/assignees{/user}","branches_url":"https://api.github.com/repos/mihneadb/node-directory-tree/branches{/branch}","tags_url":"https://api.github.com/repos/mihneadb/node-directory-tree/tags","blobs_url":"https://api.github.com/repos/mihneadb/node-directory-tree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mihneadb/node-directory-tree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mihneadb/node-directory-tree/git/refs{/sha}","trees_url":"https://api.github.com/repos/mihneadb/node-directory-tree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mihneadb/node-directory-tree/statuses/{sha}","languages_url":"https://api.github.com/repos/mihneadb/node-directory-tree/languages","stargazers_url":"https://api.github.com/repos/mihneadb/node-directory-tree/stargazers","contributors_url":"https://api.github.com/repos/mihneadb/node-directory-tree/contributors","subscribers_url":"https://api.github.com/repos/mihneadb/node-directory-tree/subscribers","subscription_url":"https://api.github.com/repos/mihneadb/node-directory-tree/subscription","commits_url":"https://api.github.com/repos/mihneadb/node-directory-tree/commits{/sha}","git_commits_url":"https://api.github.com/repos/mihneadb/node-directory-tree/git/commits{/sha}","comments_url":"https://api.github.com/repos/mihneadb/node-directory-tree/comments{/number}","issue_comment_url":"https://api.github.com/repos/mihneadb/node-directory-tree/issues/comments{/number}","contents_url":"https://api.github.com/repos/mihneadb/node-directory-tree/contents/{+path}","compare_url":"https://api.github.com/repos/mihneadb/node-directory-tree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mihneadb/node-directory-tree/merges","archive_url":"https://api.github.com/repos/mihneadb/node-directory-tree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mihneadb/node-directory-tree/downloads","issues_url":"https://api.github.com/repos/mihneadb/node-directory-tree/issues{/number}","pulls_url":"https://api.github.com/repos/mihneadb/node-directory-tree/pulls{/number}","milestones_url":"https://api.github.com/repos/mihneadb/node-directory-tree/milestones{/number}","notifications_url":"https://api.github.com/repos/mihneadb/node-directory-tree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mihneadb/node-directory-tree/labels{/name}","releases_url":"https://api.github.com/repos/mihneadb/node-directory-tree/releases{/id}","created_at":"2014-03-11T13:18:52Z","updated_at":"2015-06-19T05:34:30Z","pushed_at":"2015-06-20T10:05:59Z","git_url":"git://github.com/mihneadb/node-directory-tree.git","ssh_url":"git@github.com:mihneadb/node-directory-tree.git","clone_url":"https://github.com/mihneadb/node-directory-tree.git","svn_url":"https://github.com/mihneadb/node-directory-tree","homepage":null,"size":194,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mihneadb/node-directory-tree/pulls/2"},"html":{"href":"https://github.com/mihneadb/node-directory-tree/pull/2"},"issue":{"href":"https://api.github.com/repos/mihneadb/node-directory-tree/issues/2"},"comments":{"href":"https://api.github.com/repos/mihneadb/node-directory-tree/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/mihneadb/node-directory-tree/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/mihneadb/node-directory-tree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mihneadb/node-directory-tree/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/mihneadb/node-directory-tree/statuses/0fa31f86076838160c5351005a9906e4204ac11a"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":6,"commits":2,"additions":162,"deletions":29,"changed_files":2}}