mirror of
https://github.com/NaN72dev/kunkun-ext-string-utils.git
synced 2025-04-04 10:16:44 +00:00
feat(kebab): add kebad
This commit is contained in:
parent
0341a5e864
commit
1e8d9d00f3
1
build.ts
1
build.ts
@ -6,6 +6,7 @@ import {$} from "bun";
|
|||||||
const entrypoints = [
|
const entrypoints = [
|
||||||
"./src/camel-case.ts",
|
"./src/camel-case.ts",
|
||||||
"./src/capitalize.ts",
|
"./src/capitalize.ts",
|
||||||
|
"./src/kebab.ts",
|
||||||
];
|
];
|
||||||
|
|
||||||
async function build() {
|
async function build() {
|
||||||
|
@ -28,6 +28,11 @@
|
|||||||
"name": "Convert clipboard text to Capitalize",
|
"name": "Convert clipboard text to Capitalize",
|
||||||
"main": "dist/capitalize.js",
|
"main": "dist/capitalize.js",
|
||||||
"cmds": []
|
"cmds": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Convert clipboard text to kebab-case (dash-case)",
|
||||||
|
"main": "dist/kebab.js",
|
||||||
|
"cmds": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
11
src/kebab.ts
Normal file
11
src/kebab.ts
Normal 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());
|
Loading…
x
Reference in New Issue
Block a user