diff --git a/build.ts b/build.ts index 6adecdc..f822f33 100644 --- a/build.ts +++ b/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() { diff --git a/package.json b/package.json index 5861479..caf85d2 100644 --- a/package.json +++ b/package.json @@ -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": [] } ] }, diff --git a/src/lower-case.ts b/src/lower-case.ts new file mode 100644 index 0000000..d30e9a2 --- /dev/null +++ b/src/lower-case.ts @@ -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()); \ No newline at end of file