Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ysfscream/node-dirs-cli

📖 Node CLI to get directory’s content
https://github.com/ysfscream/node-dirs-cli

cli dictionary javascript node-cli typescript

Last synced: about 5 hours ago
JSON representation

📖 Node CLI to get directory’s content

Awesome Lists containing this project

README

        

# node-dirs-cli

📖 Node CLI to get directory’s content

## Usage

```shell
yarn add node-dirs-cli --dev

yarn get-dirs
```

Details in `get-dirs --help`

```shell
get-dirs -h
get-dirs -p ./ -n data.json -e ./User -f .DS_Store *.js

Usage: get-dirs

config:
--version, -v display version number [Boolean]
--help, -h display help messages [Boolean]
--path, -p the path to get the content
[String] [default: "./"]
--filename, -n export filename [String] [default: "data.json"]
--export, -e the path to export the json
[String] [default: "./"]
--filter, -f exclude filenames or directories
[Arrary] [default: "default]"]
```

## Development

```shell
#clone
git clone [email protected]:ysfscream/node-dirs-cli.git

# dev
yarn dev

# build
yarn build
```