跳过正文

内置模块函数


模块目标代表函数
Fs文件系统操作read, write, ls, dirs
String字符串操作split, join, replace, lower, upper
Regex正则操作match, replace, search
List列表操作first, last, map, filter
Map映射操作keys, values, merge
Math数学函数sin, cos, sqrt, rand
Rand随机数操作int, float, choice, shuffle
Time日期和时间操作now, parse, fmt, stamp
From数据解析操作json, toml, csv, script, cmd, jq
Into数据转换操作str, int, float, boolean, filesize, time, table, toml, json, csv, highlighted
Sys环境变量操作env, define, defined
Console控制台操作color, table, prompt
UiUI组件pick, confirm, widget, joinx, joiny, join_flow
Log日志操作debug, info, warn, error, trace
Boolean布尔操作and, or, not, xor
Filesize文件大小操作to_bytes, to_kb, to_mb, format
About关于信息version, build_info

使用方法
#

函数调用方式

获取帮助信息
#

  • help 列出所有信息.

  • type help libs/modules 列出模块.

  • type help <module-name> 列出模块函数.

  • type help tops 列出顶层函数.

  • type help <func-name> 列出函数细节.

  • type <module-name>.<func-name> 列出指定函数.