UNPKG

sed-lite

Version:

`sed` compiler for JavaScript

10 lines (8 loc) 230 B
/** * sed-lite * * @param {string} def "s/match/replace/flag" * @returns {Function} (str => str.replace(/match/flag, "replace") * @throws {SyntaxError} */ export declare const sed: (def: string) => (str: string) => string;