open-index/open-npm huggingface dataset:
npm package: @rodrigogs/fs
Description: Fluid and promisified file system helpers
Latest version: 0.3.0

# @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');
```