shellkitshellkit
Guide
API reference
Examples
Changelog
Releases
llms.txt
GitHub
  • 简体中文
  • English
Guide
API reference
Examples
Changelog
Releases
llms.txt
GitHub
  • 简体中文
  • English
  • API reference

    • API reference
    • error
    • i18n
    • log
    • str
    • validate
    • fs
    • os
    • trap
    • run
    • retry
    • lock
    • net
    • config
    • prompt
    • cli

Signatures only. The Chinese page carries the full comments: str.

str_trim

str_trim VAR

str_lower

str_lower VAR

str_upper

str_upper VAR

str_contains

str_contains HAYSTACK NEEDLE

str_starts_with

str_starts_with STR PREFIX

str_ends_with

str_ends_with STR SUFFIX

str_repeat

str_repeat VAR COUNT STRING

str_suggest

距离相同时取先给的那个;没有候选时返回 1。

str_parse_indices

区间写成 2-5 ⇒ 2 3 4 5;区间逆序(5-2)、越界(大于 MAX)、非数字一律判错。

Source on GitHub

Prev
log
Next
validate
给 AI 直读:llms.txt 一个文件读完整个站点的地图