dsh-text-tools
文件与数据 活跃维护

dsh-text-tools

uckkk/dsh-text-tools

支持大小写、驼峰、蛇形、短横线、slug格式互转,可自动统计文本字符数与单词数量,轻量无依赖,调用简单,直接满足日常开发、内容创作的文本格式处理需求

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:uckkk/dsh-text-tools
git clone https://github.com/uckkk/dsh-text-tools.git
git clone git@github.com:uckkk/dsh-text-tools.git
README.md main

dsh-text-tools · 字符串工具

大小写/命名风格转换与文本统计。纯 Node 实现。

提供的工具

工具 作用
text_transform 大小写/驼峰/蛇形/短横线/slug 转换
text_stats 字符/词/行/字节统计

安装

dsh plugin add dsh-text-tools

安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-text-tools"。

用法示例

把 hello world 转成驼峰
→ 调用 text_transform(text="hello world", mode="camel")

安装

dsh plugin add github:uckkk/dsh-text-tools

安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-text-tools

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

安装即在本机运行第三方代码,请自行审阅源码。