@freik/node-utils
Version:
My personal set of utilities for NodeJS
9 lines (8 loc) • 581 B
TypeScript
export declare function size(file: string): number;
export declare function sizeAsync(file: string): Promise<number>;
export declare function toTextFile(arr: string[], fileName: string): void;
declare const toTextFileAsync: (arr: string[], fileName: string) => Promise<void>;
export declare function textFileToArray(fileName: string): string[];
export declare function textFileToArrayAsync(fileName: string): Promise<string[]>;
export declare function hideFile(pathName: string): Promise<string>;
export { toTextFile as arrayToTextFile, toTextFileAsync as arrayToTextFileAsync, };