cat (function)
Reads the contents of one or more files from disk as either one UTF-8 string or one ArrayBuffer.
Provides the same functionality as the unix binary of the same name.
Example: If you have a file called
hi.txtin the current working directory, and it contains the text "hello", runningcat("hi.txt")returns"hello".
(
options: {
binary: false;
},
): string;
(
options: {
binary: true;
},
): ArrayBuffer;
};
cat(...) (call signature)
Read the contents of one or more files from disk, as one UTF-8 string.
cat(...) (call signature)
Read the contents of one or more files from disk, as one UTF-8 string.
cat(...) (call signature)
Read the contents of one or more files from disk, as one UTF-8 string.
cat(...) (call signature)
Read the contents of one or more files from disk, as one ArrayBuffer.