# @rodrigogs/fs

> Fluid and promisified file system helpers

Latest version **0.3.0** (published 2021-08-15) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @rodrigogs/fs
pnpm add @rodrigogs/fs
yarn add @rodrigogs/fs
bun add @rodrigogs/fs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2021-08-15 |
| First published | 2019-03-21 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 19.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | rodrigogs |

## Links

- npm: https://www.npmjs.com/package/@rodrigogs/fs
- Repository: https://github.com/rodrigogs/fs
- Homepage: https://github.com/rodrigogs/fs#readme
- Issues: https://github.com/rodrigogs/fs/issues
- npm.io page: https://npm.io/package/@rodrigogs/fs

## Dependencies (1)

- [conditional-race](https://npm.io/package/conditional-race.md) ^1.0.0

## Recent versions

- 0.3.0 (latest) — 2021-08-15
- 0.2.1 — 2019-05-05
- 0.2.0 — 2019-03-21
- 0.1.0 — 2019-03-21

## README

# @rodrigogs/fs
My personal fs wrapper with some advanced features.

[![Build Status](https://travis-ci.org/rodrigogs/fs.svg?branch=master)](https://travis-ci.org/rodrigogs/fs)

## Install
```bash
$ npm install @rodrigogs/fs --save
```

## Usage
```javascript
const fs = require('.');

const fileContent = await fs.readFile('/path/to/file');

const fileExists = await fs.fileExists('/path/to/file');

const fileInfo = await fs.getFileInfo('/relative/to/filename');

const fileFound = await fs.findFile('fileName.foo');

const filteredFile = await fs.filterFiles('filename.foo');

const dirFiles = await fs.listDirFiles('/relative/path/to/dir');

await fs.createFile('/relative/to/filename', 'File content');

await fs.deleteFile('/relative/to/filename');

await fs.deleteDir('/relative/to/dir');
```

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