@julong/mono-rele2-utils
v1.17.0
Published
Use this skill to invoke text utility functions via the mono-rele2-utils CLI. Handles class name merging, case conversion, and text truncation.
Readme
@julong/mono-rele2-utils
Text utility tools for the mono-rele2 monorepo. Available as an MCP server and a standalone CLI.
CLI
Installation
npm install -g @julong/mono-rele2-utils
# or
npx @julong/mono-rele2-utils-cli <skillName> [...args]Usage
mono-rele2-utils-cli <skillName> [...args]Run without arguments to list all available skills:
mono-rele2-utils-cliAvailable skills:
caseConvertTool
Converts text to the specified case format
input Text to convert
to Target case format
...Skills
cnTool
Merges class names, filtering out falsy values.
mono-rele2-utils-cli cnTool <classes>| arg | type | description |
|-----|------|-------------|
| classes | JSON string (array) | List of class names to merge |
mono-rele2-utils-cli cnTool '["btn","active","large"]' # btn active largecaseConvertTool
Converts text to the specified case format.
mono-rele2-utils-cli caseConvertTool <input> <to>| arg | type | description |
|-----|------|-------------|
| input | string | Text to convert |
| to | upper | lower | capitalize | camel | snake | kebab | Target case format |
mono-rele2-utils-cli caseConvertTool "hello world" camel # helloWorld
mono-rele2-utils-cli caseConvertTool "helloWorld" snake # hello_world
mono-rele2-utils-cli caseConvertTool "hello world" kebab # hello-worldtruncateTool
Truncates text to a maximum length and appends a suffix.
mono-rele2-utils-cli truncateTool <input> <maxLength> [suffix]| arg | type | description |
|-----|------|-------------|
| input | string | Text to truncate |
| maxLength | number | Maximum character length |
| suffix | string | Suffix to append when truncated (default: ...) |
mono-rele2-utils-cli truncateTool "hello world long text" 10 # hello w...
mono-rele2-utils-cli truncateTool "hello world" 8 "…" # hello w…MCP Server
npx -y @julong/mono-rele2-utils