qansigliere-fs-utils
Version:
The main idea of this library, created in JavaScript, is to provide a ready-made set of methods for creating and updating files.
29 lines (17 loc) • 871 B
Markdown
# FileSystem
The main idea of this library, created in JavaScript, is to provide a ready-made set of methods for creating and
updating files.
## Author
https://www.youtube.com/@QANSIGLIERE/
## Support the project
https://buymeacoffee.com/qansigliere
## Installation
Using npm: `npm i qansigliere-fs-utils`
## Functions
- `createFileFromString(fileName, stringValue)` - it allows to save any string information into a new file.
- `saveBase64AsImage(pngBase64String, pathToFile)` - it allows to save any Base64 string as a new .PNG file
- `fileExists(pathToFile)` - the function returns true if the provided file exists and false if it doesn't exist
- `deleteFile(pathToFile)` - it allows to delete the specific file
- `readFile(pathToFile, encoding)` - it allows to read the specific file
## Improvements & Suggestions
https://forms.gle/GZbS9hw42tSYJxKL7