mirror of
https://github.com/NaN72dev/kunkun-ext-string-utils.git
synced 2025-04-04 10:16:44 +00:00
feat(start): add start case
This commit is contained in:
parent
e920da7e25
commit
9faec05ab3
1
build.ts
1
build.ts
@ -9,6 +9,7 @@ const entrypoints = [
|
|||||||
"./src/kebab.ts",
|
"./src/kebab.ts",
|
||||||
"./src/lower-case.ts",
|
"./src/lower-case.ts",
|
||||||
"./src/snake-case.ts",
|
"./src/snake-case.ts",
|
||||||
|
"./src/start-case.ts",
|
||||||
];
|
];
|
||||||
|
|
||||||
async function build() {
|
async function build() {
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
"cmds": []
|
"cmds": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Convert clipboard text to Capitalize",
|
"name": "Convert clipboard text to Capitalize text",
|
||||||
"main": "dist/capitalize.js",
|
"main": "dist/capitalize.js",
|
||||||
"cmds": []
|
"cmds": []
|
||||||
},
|
},
|
||||||
@ -43,6 +43,11 @@
|
|||||||
"name": "Convert clipboard text to snake_case",
|
"name": "Convert clipboard text to snake_case",
|
||||||
"main": "dist/snake-case.js",
|
"main": "dist/snake-case.js",
|
||||||
"cmds": []
|
"cmds": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Convert clipboard text to Start Case",
|
||||||
|
"main": "dist/start-case.js",
|
||||||
|
"cmds": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
11
src/start-case.ts
Normal file
11
src/start-case.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { expose } from "@kksh/api/headless";
|
||||||
|
import startCase from "lodash/startCase";
|
||||||
|
import { BaseExt } from "./base";
|
||||||
|
|
||||||
|
class StartCaseExt extends BaseExt {
|
||||||
|
constructor() {
|
||||||
|
super(startCase);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
expose(new StartCaseExt());
|
Loading…
x
Reference in New Issue
Block a user