Skip to main content

File

import { deleteFile, fileExists, getFileExtension } from '@rtorcato/js-common/file'

Exports

NameSummary
deleteFileDeletes a file.
fileExistsChecks if a file exists.
getFileExtensionGets the file extension from a file path.
readFileAsStringReads a file as a string (UTF-8).
writeFileAsStringWrites a string to a file (UTF-8).