UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

12 lines (11 loc) 372 B
/** * Shifts characters in the string like a Caesar cipher. * * Example: shiftText("abc", 1) → "bcd" * * @author @dailker * @param {string} str - The input string. * @param {number} shift - The number of positions to shift each letter. * @returns {string} The shifted string. */ export declare function shiftText(str: string, shift: number): string;