The value to hash.
A promise that resolves to the hash.
Writes a JSON object to a file.
The object to write.
The file to write to.
Creates a directory if it does not exist.
The directory to create.
Loads a module after removing it from the cache (if exists).
The module to load.
The loaded module.
Gets the command-line arguments passed to a Node.js script.
a string array containing the command-line arguments
Checks if the current process's arguments contain the specified flags.
The flags to check for.
true
if the flag is contained in the arguments, false
otherwise.
Generates a random UUID.
Decodes a string of data which has been encoded using base-64 encoding.
The string to decode.
The decoded string.
Creates a base-64 encoded ASCII string from a String object in which each character in the string is treated as a byte of binary data.
An optional string to encode. If not specified, an empty string is used.
The base-64 encoded string.
将波浪号路径转换为绝对路径
波浪号路径
转换后的绝对路径
Checks if the given argument is a duplex (readable and writable) stream.
The value to check.
If value
is a duplex stream.
Checks if the given argument is a readable stream.
The value to check.
If the given argument is a readable stream.
Checks if the given argument is a stream.
The value to check.
true
if the given argument is a stream, false
otherwise.
Checks if the given argument is a writable stream.
The value to check.
If the given argument is a writable stream.
Reads the contents of a file and splits it into lines, returns an array of lines from the specified file.
The path to the file to read.
An array of lines from the specified file.
Creates a hash for a value using the SHA-256 algorithm. Returns a promise.
0.1.0