oden/src/io.ts
John Doty 17c701a7d6 [oden] IO: Load Strings
It's useful. The stock JS way is bad.
2023-07-08 17:55:37 -07:00

17 lines
410 B
TypeScript

import * as core from "io-core";
/**
* Load the specified file into memory.
*
* @param path The path of the file to load.
* @returns The contents of the file.
*/
export const load = core.load;
/**
* Load the specified file into memory as a string.
*
* @param path The path of the file to load.
* @returns The contents of the file decoded from utf-8.
*/
export const load_string = core.load_string;