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