UNPKG

oparser

Version:

A very forgiving key-value option parser

28 lines 870 B
export type StringifyOptions = { /** * - Character to join key/value pairs (default: '=') */ joiner?: string; /** * - Format as JS syntax (default: true) */ asJs?: boolean; /** * - Remove whitespace (default: false) */ compressed?: boolean; }; /** * @typedef {Object} StringifyOptions * @property {string} [joiner] - Character to join key/value pairs (default: '=') * @property {boolean} [asJs] - Format as JS syntax (default: true) * @property {boolean} [compressed] - Remove whitespace (default: false) */ /** * Turn object into options string * @param {Record<string, any>} obj - Object to stringify * @param {StringifyOptions} [opts] - Stringify options * @returns {string} */ export function stringify(obj: Record<string, any>, opts?: StringifyOptions): string; //# sourceMappingURL=stringify.d.ts.map