recursive-readdir-async
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "recursive-readdir-async", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Module to recursive read directory async (non blocking). Must be used with Promises. Configurable, extended filtering. etc.", | ||
"main": "module.js", | ||
"main": "module.min.js", | ||
"scripts": { | ||
"test": "nyc mocha", | ||
"coverage":"nyc --reporter=lcov --reporter=text-lcov npm test" | ||
"coverage": "nyc --reporter=lcov --reporter=text-lcov npm test", | ||
"build":"uglifyjs --compress --mangle -- module.js > module.min.js" | ||
}, | ||
"engines": { | ||
"node": ">=7.6" | ||
}, | ||
}, | ||
"keywords": [ | ||
@@ -41,4 +42,5 @@ "recursive", | ||
"mocha": "^5.0.0", | ||
"nyc": "^11.4.1" | ||
"nyc": "^11.4.1", | ||
"uglify-es": "^3.3.10" | ||
} | ||
} |
@@ -33,8 +33,10 @@ # recursive-readdir-async | ||
const options = { | ||
mode: rra.LIST, | ||
mode: LIST, | ||
recursive: true, | ||
stats: false, | ||
ignoreFolders: true, | ||
extensions: true, | ||
deep: true | ||
extensions: false, | ||
deep: false, | ||
realPath: true, | ||
normalizePath: true | ||
} | ||
@@ -59,2 +61,4 @@ const list = await rra.list('.', options, function (obj, index, total) { | ||
* **deep (true | false)** : If true, folder depth information will be added to every item starting by 0 (initial path), and be incremented by 1 in every subfolder. *Default: false* | ||
* **normalizePath (true | false)** : Normalizes windows style paths by replacing double backslahes with single forward slahes (unix style). *Default: true* | ||
* **realPath (true | false)** : Computes the canonical pathname by resolving ., .. and symbolic links. *Default: true* | ||
## Object structure | ||
@@ -61,0 +65,0 @@ The function will return an object and never throw an error. All errors will be added to the returned object. The return object in LIST mode are like this: |
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
149
10187
4
9
1
1