内置模块函数
| 模块 | 目标 | 代表函数 |
|---|---|---|
| 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 |
| Ui | UI组件 | 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>列出指定函数.
Lumesh Fs 模块
1682 字·4 分钟
Lumesh Into 模块
1612 字·4 分钟
Lumesh Map 模块
1900 字·4 分钟
Lumesh Math 模块
1853 字·4 分钟