feat(trim): add trim

This commit is contained in:
Nan72 2025-02-14 12:38:34 +07:00
parent d9668e39fb
commit 7d2926a7ec
No known key found for this signature in database
3 changed files with 17 additions and 0 deletions

View File

@ -11,6 +11,7 @@ const entrypoints = [
"./src/snake-case.ts",
"./src/start-case.ts",
"./src/to-upper.ts",
"./src/trim.ts",
];
async function build() {

View File

@ -53,6 +53,11 @@
"name": "Convert clipboard text to UPPER CASE",
"main": "dist/to-upper.js",
"cmds": []
},
{
"name": "Trim clipboard text",
"main": "dist/trim.js",
"cmds": []
}
]
},

11
src/trim.ts Normal file
View File

@ -0,0 +1,11 @@
import { expose } from "@kksh/api/headless";
import trim from "lodash/trim";
import { BaseExt } from "./base";
class TrimExt extends BaseExt {
constructor() {
super(trim);
}
}
expose(new TrimExt());