dyna-node-fs
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

About

Basic node.js file actions that return Promises.

No dependencies, can fit easy with universal projects.

Written in Typescript, runs everywhere.

Methods

loadJSON(filename: string): Promise

Loads a file.

Resolves with a object saved in the JSON file.

saveJSON(filename: string, data: any, humanReadable: boolean = false): Promise

Saves a file with an object is JSON format.

exists(filename: string): Promise

Resolves with boolean is the file exists or not.

deleteFile(filename: string): Promise

more commands later

mkdir(path: string): Promise

Create a directories recursively.

rmdir(path: string): Promise

Deletes a directory with all contents of it.

isFolderEmpty(path: string): Promise

Returns true if the folder contains files or sub folders.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.42latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.42
1.0.31
1.0.21
1.0.11
0.2.11
0.1.51
0.1.40
0.1.30
0.1.20
0.1.10
0.0.41
0.0.31
0.0.20

Package Sidebar

Install

npm i dyna-node-fs

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

61.6 kB

Total Files

30

Last publish

Collaborators

  • dennisat