Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

list-contents

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

list-contents - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

package.json
{
"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"]`.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc