list-contents
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "list-contents", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Returns a list of paths to the subfolders and subfiles of the specified location.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,10 +22,10 @@ # Description | ||
* **`depth`** [Number|null] *(default:null)* | ||
It indicates how deep the `list-contents` module should explore the folders in the given `path` directory. | ||
If set to `null` *(default)* - it lists all subfiles and subfolders of all levels of the `path` directory. | ||
If set to 1 - it lists only the one level of `path` directory elements; eg. `./styles`, `./index.html` | ||
If set to 2 - it lists two levels of `path` directory elements; eg. `./styles/css`, `./scripts/ajax.js` | ||
It indicates how deep the `list-contents` module should explore the folders in the given `path` directory. | ||
If set to `null` *(default)* - it lists all subfiles and subfolders of all levels of the `path` directory. | ||
If set to 1 - it lists only the one level of `path` directory elements; eg. `./styles`, `./index.html`. | ||
If set to 2 - it lists two levels of `path` directory elements; eg. `./styles/css`, `./scripts/ajax.js` | ||
etc. | ||
* **`exclude`** [Array|String] *(default:[])* | ||
It indicates the folders' and files' paths that should be ignored and not included into the `files`, `dirs` and `inaccessible` lists. | ||
If the folder is indicated, neither the folder nor its contents will be included. | ||
If the folder is indicated, neither the folder nor its contents will be included. | ||
When [String], it can indicate the one path to ignore, eg `"./bin"`. | ||
@@ -32,0 +32,0 @@ When [Array], it can indicate more than one path to ignore, eg. `["./node_modules", "./bin"]`. |
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
9909