0.3.0 • Published 3 years ago

@rodrigogs/fs v0.3.0

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
3 years ago

@rodrigogs/fs

My personal fs wrapper with some advanced features.

Build Status

Install

$ npm install @rodrigogs/fs --save

Usage

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');
0.3.0

3 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago