{"action":"created","issue":{"url":"https://api.github.com/repos/felixge/node-require-all/issues/27","repository_url":"https://api.github.com/repos/felixge/node-require-all","labels_url":"https://api.github.com/repos/felixge/node-require-all/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/felixge/node-require-all/issues/27/comments","events_url":"https://api.github.com/repos/felixge/node-require-all/issues/27/events","html_url":"https://github.com/felixge/node-require-all/issues/27","id":128927784,"number":27,"title":"Exclude files","user":{"login":"raoulus","id":1379228,"avatar_url":"https://avatars.githubusercontent.com/u/1379228?v=3","gravatar_id":"","url":"https://api.github.com/users/raoulus","html_url":"https://github.com/raoulus","followers_url":"https://api.github.com/users/raoulus/followers","following_url":"https://api.github.com/users/raoulus/following{/other_user}","gists_url":"https://api.github.com/users/raoulus/gists{/gist_id}","starred_url":"https://api.github.com/users/raoulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raoulus/subscriptions","organizations_url":"https://api.github.com/users/raoulus/orgs","repos_url":"https://api.github.com/users/raoulus/repos","events_url":"https://api.github.com/users/raoulus/events{/privacy}","received_events_url":"https://api.github.com/users/raoulus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2016-01-26T20:09:42Z","updated_at":"2016-06-02T02:29:37Z","closed_at":null,"body":"How do you think about having an option to exclude files as well? \r\n\r\nIn my case I want to exclude a single file, let's say it's a json config which is used by some of the tasks.\r\n\r\nI'd need this\r\n\r\n```javascript\r\nrequire('require-all')({\r\n  excludeFiles:  ['a.json', 'b.json', ...]\r\n});\r\n```\r\n\r\nBest regards"},"comment":{"url":"https://api.github.com/repos/felixge/node-require-all/issues/comments/223179709","html_url":"https://github.com/felixge/node-require-all/issues/27#issuecomment-223179709","issue_url":"https://api.github.com/repos/felixge/node-require-all/issues/27","id":223179709,"user":{"login":"AngryPidgeon","id":16108887,"avatar_url":"https://avatars.githubusercontent.com/u/16108887?v=3","gravatar_id":"","url":"https://api.github.com/users/AngryPidgeon","html_url":"https://github.com/AngryPidgeon","followers_url":"https://api.github.com/users/AngryPidgeon/followers","following_url":"https://api.github.com/users/AngryPidgeon/following{/other_user}","gists_url":"https://api.github.com/users/AngryPidgeon/gists{/gist_id}","starred_url":"https://api.github.com/users/AngryPidgeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngryPidgeon/subscriptions","organizations_url":"https://api.github.com/users/AngryPidgeon/orgs","repos_url":"https://api.github.com/users/AngryPidgeon/repos","events_url":"https://api.github.com/users/AngryPidgeon/events{/privacy}","received_events_url":"https://api.github.com/users/AngryPidgeon/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T02:29:37Z","updated_at":"2016-06-02T02:29:37Z","body":"@dougwilson  I hadn't noticed the PR before.  Also I just spent a while messing around with the filter that is currently there and it appears bugged?  I think the hard-coded \"1\" on line 41 of index.js should be a 0. \r\n\r\nstring.match(regex) returns an array like:\r\n\r\n[ 'foo.js',\r\n  index: 0,\r\n  input: 'foo.js' ]\r\n\r\nAs it is, its taking the index of the match (arbitrary for this purpose) and mapping it to the required contents.  It looks like we should be mapping the filename (guaranteed unique) to the contents."}}
{"actor":{"display_login":"AngryPidgeon"}}