@leismore/insert_separator
Version:
A JavaScript function that converts a string into a series of fixed-length string chunks divided by a given separator.
13 lines (12 loc) • 449 B
TypeScript
/**
* @param text {string} - The text waiting for being added with separators
* @param size {int} - The text chunk length
* @param separator {string}
* @returns {string} - The text with separators
* @throws {ISError}
* 1 invalid_text
* 2 invalid_size
* 3 invalid_separator
*/
declare function insert_separator(text: string, size: number, separator: string): string;
export { insert_separator };