@cedx/php-minifier
Version:
Minify PHP source code by removing comments and whitespace.
29 lines • 918 B
TypeScript
import type { ITransformer } from "./ITransformer.js";
/**
* Removes comments and whitespace from a PHP script, by calling a PHP process.
*/
export declare class SafeTransformer implements ITransformer {
#private;
/**
* Creates a new safe transformer.
* @param executable The path to the PHP executable.
*/
constructor(executable?: string);
/**
* Releases any resources associated with this object.
* @returns Resolves when this object is finally disposed.
*/
[Symbol.asyncDispose](): Promise<void>;
/**
* Closes this transformer.
* @returns Resolves when the transformer has been closed.
*/
close(): Promise<void>;
/**
* Processes a PHP script.
* @param file The path to the PHP script.
* @returns The transformed script.
*/
transform(file: string): Promise<string>;
}
//# sourceMappingURL=SafeTransformer.d.ts.map