File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -119,23 +119,3 @@ module.exports = require('require-dir')();   // defaults to '.'
119119``` 
120120
121121And don't worry, the calling file is always ignored to prevent infinite loops.
122- 
123- ## TODO  
124- 
125- It'd be awesome if this could work with the regular ` require() ` , e.g. like a
126- regular ` require() `  hook. Not sure that's possible though; directories are
127- already special-cased to look for an ` index `  file or ` package.json ` .
128- 
129- An ` ignore `  option would be nice: a string or regex, or an array of either or
130- both, of paths, relative to the directory, to ignore. String paths can be
131- extensionless to ignore all extensions for that path. Supporting shell-style
132- globs in string paths would be nice.
133- 
134- Currently, basenames are derived for directories too — e.g. a directory named
135- ` a.txt `  will be returned as ` a `  when recursing — but should that be the case?
136- Maybe directories should always be returned by their full name, and/or maybe
137- this behavior should be customizable. This is hopefully an edge case.
138- 
139- ## License  
140- 
141- MIT. © ;  2012-2015 Aseem Kishore.
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments