feat(lowercase): add lower case

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

View File

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

View File

@ -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
View 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());