img-src-placeholder
Version:
Replace src=# in <img> tags with a data URL of a transparent 1 pixel image (CLI for package.json scripts)
18 lines (16 loc) • 576 B
TypeScript
//! img-src-placeholder v1.1.4 ~~ https://github.com/center-key/img-src-placeholder ~~ MIT License
import { Results } from 'replacer-util';
export type Settings = {
cd: string | null;
extensions: string[];
filename: string | null;
};
export type ReporterSettings = {
summaryOnly: boolean;
};
declare const imgSrcPlaceholder: {
htmlExts: string[];
transform(sourceFolder: string, targetFolder: string, options?: Partial<Settings>): Results;
reporter(results: Results, options?: Partial<ReporterSettings>): Results;
};
export { imgSrcPlaceholder };