filetree.js
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -40,2 +40,5 @@ var fs = require('fs'); | ||
} | ||
exclude = exclude.map(function (name) { | ||
return name.replace(/(^[\/\\]+|[\/\\]+$)/g, ''); | ||
}); | ||
@@ -42,0 +45,0 @@ if (typeof depth === 'undefined') { |
@@ -55,2 +55,1 @@ var expect = require('chai').expect, | ||
}); | ||
{ | ||
"name": "filetree.js", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Recursively list files in directory hierarchy as a readable tree upto specified depth while excluding unwanted folder names", | ||
@@ -5,0 +5,0 @@ "main": "filetree.js", |
@@ -114,1 +114,12 @@ # filetree.js | ||
``` | ||
## To Do | ||
- Return paths in JS and print in CLI | ||
- Async with promises rather than synchronous | ||
## Change Log | ||
2015-10-18 - v0.0.2 - Allow exclude names to have hanging/trailing slash | ||
2015-10-18 - Published v0.0.1 | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10572
121
125