cuigenghao
v1.0.7
Published
简单的字符串处理工具
Readme
cuigenghao
简单的字符串处理工具。
安装
npm install cuigenghao使用方法
const { capitalize, reverse, countWords, truncate } = require("cuigenghao");
capitalize("hello"); // → "Hello"
reverse("abc"); // → "cba"
countWords("Hello world"); // → 2
truncate("很长的文本内容", 4); // → "很长的文..."