feat(kebab): add kebad

This commit is contained in:
Nan72 2025-02-14 12:29:10 +07:00
parent 0341a5e864
commit 1e8d9d00f3
No known key found for this signature in database
3 changed files with 17 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import {$} from "bun";
const entrypoints = [
"./src/camel-case.ts",
"./src/capitalize.ts",
"./src/kebab.ts",
];
async function build() {

View File

@ -28,6 +28,11 @@
"name": "Convert clipboard text to Capitalize",
"main": "dist/capitalize.js",
"cmds": []
},
{
"name": "Convert clipboard text to kebab-case (dash-case)",
"main": "dist/kebab.js",
"cmds": []
}
]
},

11
src/kebab.ts Normal file
View File

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