@suns-echoes/file-system-utils
v0.10.1
Published
File System Utilities Library
Downloads
7
Readme
File System Utilities
file-system-utils
library add file system methods which simplifies files read/write/delete, folders create/remove and more.
Installation
npm i @suns-echoes/file-system-utils
Import
// Import library distribution file
import { FileSystemUtils } from '@suns-echoes/file-system-utils';
// import library from source
import FileSystemUtils from '@suns-echoes/file-system-utils/src';
// or
import { FileSystemUtils } from '@suns-echoes/file-system-utils/src/file-system-utils';
// import single util from source
import { isFile } from '@suns-echoes/file-system-utils/src/utils/is-file';
Methods
Async
- copy
- createFolder
- isFile
- isFolder
- listFiles
- readFolder
- readJSONFile
- readTextFile
- remove
- writeJSONFile
- writeTextFile
Sync
- None by now, use async ;)
License
Licensed under MIT
Copyright (c) 2019 Aneta Suns