# dd-file-util

> Simple File Utility

Latest version **1.0.1** (published 2017-06-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install dd-file-util
pnpm add dd-file-util
yarn add dd-file-util
bun add dd-file-util
```

## 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-06-15 |
| First published | 2017-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | dadajam4 |
| Maintainers | dadajam4 |
| Keywords | file, utility |

## Links

- npm: https://www.npmjs.com/package/dd-file-util
- Repository: git@github.com.dadajam4:dadajam4/dd-file-util
- npm.io page: https://npm.io/package/dd-file-util

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-06-15
- 1.0.0 — 2017-02-28

## README

# dd-file-util
Simple Log

It is a thing created to be used very privately.

## Installation

```
$ npm install dd-file-util
```

## How to use
```
const DDFileUtil = require('dd-file-util');

DDFileUtil.isExistFile('path/to/file');
```

## Api

### isExistFile
ファイルの存在確認

* **param** (`string`) - filepath.
* **return** (`boolean`) - result.

### isDir
ディレクトリであるかのチェック

* **param** (`string`) - filepath.
* **return** (`boolean`) - result.

### pathList
指定のパス直下のパス一覧を取得
type: 0 -> 全て, 1 -> ファイルのみ, 2 -> ディレクトリのみ

* **param** (`string`, `string`) - dirPath, type
* **return** (`Array`) - result.

### fileList
指定のパス直下のファイル一覧を取得

* **param** (`string`) - dirPath
* **return** (`Array`) - result.

### dirList
指定のパス直下のディレクトリ一覧を取得

* **param** (`string`) - dirPath
* **return** (`Array`) - result.

### getPathList
指定のディレクトリ直下の全てのパス一覧を規定のオブジェクト形式のリストで取得（再帰）

* **param** (`string`) - dirPath
* **return** (`Array`) - [{dir: ディレクトリ, filename: ファイル名, filepath: パス},...]

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