mirror of
https://github.com/NaN72dev/kunkun-ext-string-utils.git
synced 2025-04-03 17:56:45 +00:00
feat(lowercase): add lower case
This commit is contained in:
parent
1e8d9d00f3
commit
ebc73768ef
1
build.ts
1
build.ts
@ -7,6 +7,7 @@ const entrypoints = [
|
||||
"./src/camel-case.ts",
|
||||
"./src/capitalize.ts",
|
||||
"./src/kebab.ts",
|
||||
"./src/lower-case.ts",
|
||||
];
|
||||
|
||||
async function build() {
|
||||
|
@ -33,6 +33,11 @@
|
||||
"name": "Convert clipboard text to kebab-case (dash-case)",
|
||||
"main": "dist/kebab.js",
|
||||
"cmds": []
|
||||
},
|
||||
{
|
||||
"name": "Convert clipboard text to lower case",
|
||||
"main": "dist/lower-case.js",
|
||||
"cmds": []
|
||||
}
|
||||
]
|
||||
},
|
||||
|
11
src/lower-case.ts
Normal file
11
src/lower-case.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { expose } from "@kksh/api/headless";
|
||||
import lowerCase from "lodash/lowerCase";
|
||||
import { BaseExt } from "./base";
|
||||
|
||||
class LowerCaseExt extends BaseExt {
|
||||
constructor() {
|
||||
super(lowerCase);
|
||||
}
|
||||
}
|
||||
|
||||
expose(new LowerCaseExt());
|
Loading…
x
Reference in New Issue
Block a user