Comparing version 1.1.0 to 1.2.0
@@ -155,2 +155,10 @@ // Generated by CoffeeScript 1.6.3 | ||
Finder["in"] = function(path) { | ||
return new Finder(path); | ||
}; | ||
Finder.from = function(path) { | ||
return (new Finder(path)).recursively(); | ||
}; | ||
Finder.find = function(path, type) { | ||
@@ -157,0 +165,0 @@ if (type == null) { |
{ | ||
"name": "fs-finder", | ||
"description": "File system recursive finder", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "David Kudera", |
@@ -115,2 +115,9 @@ # fs-finder | ||
var files = Finder.findFiles('/var/data/base-path/<(.git|.idea)*[0-9]>'); // Returns every file with .git or .idea and also with number in path | ||
``` | ||
For more advanced options you can use in and from functions. | ||
``` | ||
var files = Finder.in('/var/data/base-path').findFiles(); // Load files only from base-path directory | ||
var files = Finder.from('/var/data/base-path').findFiles(); // Load files recursively | ||
``` |
Sorry, the diff of this file is not supported yet
13343
199
122