x-permute-string
v0.0.2
Published
**xPermuteString** is a TypeScript function that generates all possible case permutations of a given string, including special characters. It's a versatile tool for string manipulation and can be used in various applications.
Downloads
1
Maintainers
Readme
xPermuteString is a TypeScript function that generates all possible case permutations of a given string, including special characters. It's a versatile tool for string manipulation and can be used in various applications.
Installation
To use xPermuteString, you'll need to include the provided TypeScript file in your project.
- Download the
xPermuteString.ts
file from this repository. - Add the file to your project directory.
Usage
Import the
xPermuteString
class into your TypeScript code:import { xPermuteString } from 'x-permuate-string' const key: string = "AbcD"; xPermuteString(key) // Output: // [ // 'abcd', 'abcD', 'abCd', // 'abCD', 'aBcd', 'aBcD', // 'aBCd', 'aBCD', 'Abcd', // 'AbcD', 'AbCd', 'AbCD', // 'ABcd', 'ABcD', 'ABCd', // 'ABCD' // ]
Import the
xPermuteString
class into your Javascript code:const { xPermuteString } = require("x-permute-string") const key = "AbcD"; xPermuteString(key) // Output: // [ // 'abcd', 'abcD', 'abCd', // 'abCD', 'aBcd', 'aBcD', // 'aBCd', 'aBCD', 'Abcd', // 'AbcD', 'AbCd', 'AbCD', // 'ABcd', 'ABcD', 'ABCd', // 'ABCD' // ]
Support Me
If you find this project helpful or want to show your appreciation, you can support me by buying me a coffee. Your support is greatly appreciated!
Caution: Stack Size Limit Exceeded
When working with recursive functions, especially in JavaScript or TypeScript, it's important to be aware of the possibility of encountering a "Stack Size Limit Exceeded" error. This error occurs when the call stack, which keeps track of function calls, becomes too deep due to excessive recursion, ultimately causing the program to crash.