# folder-list

> Gets all folders for pattern matching

Latest version **1.0.1** (published 2017-08-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install folder-list
pnpm add folder-list
yarn add folder-list
bun add folder-list
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-08-09 |
| First published | 2017-08-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | liyongleihf2006 |
| Maintainers | liyongleihf2006 |
| Keywords | folder-list, getFolders, folders, folder, globby, glob |

## Links

- npm: https://www.npmjs.com/package/folder-list
- Repository: https://github.com/liyongleihf2006/folder-list
- Homepage: https://github.com/liyongleihf2006/folder-list#readme
- Issues: https://github.com/liyongleihf2006/folder-list/issues
- npm.io page: https://npm.io/package/folder-list

## Dependencies (1)

- [globby](https://npm.io/package/globby.md) ^6.1.0

## Recent versions

- 1.0.1 (latest) — 2017-08-09
- 1.0.0 — 2017-08-08

## README

**folder-list**  

user [globby](https://www.npmjs.com/package/globby)'s grammar to gets all folders for pattern matching  

**Install**  

```$ npm install --save folder-list```

**Usage**  

    ├── src  
        ├── folder1  
               ├── folder11  
               ├── folder12  
               ├── file11.js  
               ├── file12.js  
        ├── folder2  
        ├── folder3  
        ├── file1.js  
        ├── file2.js  
        └── .idea  
        
    const fl = require('folder-list');  
    var folders=fl(['src/**', '!**/.*']);  
    console.log(folders);  
    //[ 'src', 'src/folder1','src/folder1/folder11','src/folder1/folder12', 'src/folder2','src/folder3' ]

**API**

**fl(patterns, [options])**

Returns an array of matching folders.  

**Globbing patterns**

Just a quick overview.

- \* matches any number of characters, but not /
- ? matches a single character, but not /
- ** matches any number of characters, including /, as long as it's the only thing in a path part
- {} allows for a comma-separated list of "or" expressions
- ! at the beginning of a pattern will negate the match

---
_Source: https://npm.io/package/folder-list · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
