Synchronously reads the entire contents of a file.
A path to a file. If a URL is provided, it must use the file:
protocol.
URL support is experimental.
If a file descriptor is provided, the underlying file will not be closed automatically.
An object that may contain an optional flag. If a flag is not provided, it defaults to 'r'
.
Synchronously reads the entire contents of a file.
A path to a file. If a URL is provided, it must use the file:
protocol.
URL support is experimental.
If a file descriptor is provided, the underlying file will not be closed automatically.
Either the encoding for the result, or an object that contains the encoding and an optional flag.
If a flag is not provided, it defaults to 'r'
.
Synchronously reads the entire contents of a file.
A path to a file. If a URL is provided, it must use the file:
protocol.
URL support is experimental.
If a file descriptor is provided, the underlying file will not be closed automatically.
Either the encoding for the result, or an object that contains the encoding and an optional flag.
If a flag is not provided, it defaults to 'r'
.
Synchronously writes data to a file, replacing the file if it already exists.
A path to a file. If a URL is provided, it must use the file:
protocol.
URL support is experimental.
If a file descriptor is provided, the underlying file will not be closed automatically.
The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag.
If encoding
is not supplied, the default of 'utf8'
is used.
If mode
is not supplied, the default of 0o666
is used.
If mode
is a string, it is parsed as an octal integer.
If flag
is not supplied, the default of 'w'
is used.
Method to decrypt data
The data to decrypt
Buffer
Method to encrypt a data
The data to encrypt
Buffer
Return the name of file
string
Return the secret key used to encryption
string
Read data in file (with encryption if active)
The key name declared at schema)
depends of schema
Write data in file (with encryption if active)
The data to write (must be a object declared at schema)
void
Generated using TypeDoc
Class DataStore to save Object JS file as key:value
1.0