(input: string)
| 36 | } |
| 37 | |
| 38 | private static resolveFilePath(input: string): string { |
| 39 | if (input == null || input === "") { |
| 40 | throw new Error("You must specify a file path."); |
| 41 | } |
| 42 | const osInput = path.join(input); |
| 43 | return osInput.indexOf(path.sep) === -1 ? path.join(process.cwd(), osInput) : osInput; |
| 44 | } |
| 45 | |
| 46 | private static readFileBuffer(input: string): Promise<Buffer> { |
| 47 | return new Promise<Buffer>((resolve, reject) => { |