制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗All the siFunciona system functions for stringing together functions and simplifying logic.
Version: 1.0.0
Author: Joshua Heagle [email protected]
Manage how strings are manipulated with these utilities.
Version: 1.0.0
Author: Joshua Heagle [email protected]
Split a string into sets of numbers or letters - the shared tokenizer behind camelCase/kabobCase/snakeCase/ titleCase, so each can rebuild the string in its own casing style.
Kind: static method of stringHelpers
| Param | Type | Description |
|---|---|---|
| str | string | The string to split. |
Given a string, make the first character uppercase and the rest lowercase.
Kind: static method of stringHelpers
| Param | Type | Description |
|---|---|---|
| str | string | The string to convert. |
Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
Kind: static method of stringHelpers
| Param | Type | Description |
|---|---|---|
| str | string | The string to convert. |
Retrieve the string part before the last search match.
Kind: static method of stringHelpers
Returns: string - The portion of str before the last occurrence of search, or '' if not found.
| Param | Type | Description |
|---|---|---|
| str | string | The string to search within. |
| search | string | The substring to search for. |
Retrieve the string part before the search match.
Kind: static method of stringHelpers
Returns: string - The portion of str before the first occurrence of search, or '' if not found.
| Param | Type | Description |
|---|---|---|
| str | string | The string to search within. |
| search | string | The substring to search for. |
Retrieve the string part after the last search match.
Kind: static method of stringHelpers
Returns: string - The portion of str after the last occurrence of search, or '' if not found.
| Param | Type | Description |
|---|---|---|
| str | string | The string to search within. |
| search | string | The substring to search for. |
Retrieve the string part after the search match.
Kind: static method of stringHelpers
Returns: string - The portion of str after the first occurrence of search, or '' if not found.
| Param | Type | Description |
|---|---|---|
| str | string | The string to search within. |
| search | string | The substring to search for. |
Given a string in kebab-case, camelCase or 'Sentence case', convert to snake_case.
Kind: static method of stringHelpers
| Param | Type | Description |
|---|---|---|
| str | string | The string to convert. |
Take a string and escape the regex characters.
Kind: static method of stringHelpers
| Param | Type | Description |
|---|---|---|
| str | string | The string to escape, so it can be used literally inside a RegExp. |
Compare two file paths and simplify them to a relative path.
Kind: static method of stringHelpers
Returns: string - toFile expressed relative to fromFile.
| Param | Type | Description |
|---|---|---|
| fromFile | string | The path of the file the resulting relative path will be used from. |
| toFile | string | The path of the file being referenced. |
以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗