# ls-stat

> Simple sequential/serial folder iterator with promises

Latest version **1.0.1** (published 2017-03-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install ls-stat
pnpm add ls-stat
yarn add ls-stat
bun add ls-stat
```

## 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-03-13 |
| First published | 2017-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Walter Dal Mut |
| Maintainers | wdalmut |

## Links

- npm: https://www.npmjs.com/package/ls-stat
- Repository: https://github.com/wdalmut/ls-stat
- Homepage: https://github.com/wdalmut/ls-stat#readme
- Issues: https://github.com/wdalmut/ls-stat/issues
- npm.io page: https://npm.io/package/ls-stat

## Dependencies (1)

- [q](https://npm.io/package/q.md) ^1.4.1

## Recent versions

- 1.0.1 (latest) — 2017-03-13
- 1.0.0 — 2017-03-05

## README

# Directory iterator (with stats)

Simple sequential/serial folder iterator with promises

```js
const ls = require('ls-stat');

ls('/path/to/disk').then((files) => {
    // ['folder1', 'folder2', 'file.txt', 'file2.txt'] (stats included)
    var paths = files.filter((file) => file.isDirectory()).map((file) => file.filename);

    console.log(paths); // ['folder1', 'folder2']
});
```

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