diff --git a/src/index.ts b/src/index.ts index 0f83622..c0286e7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,12 +1,12 @@ import { clipboard, expose, HeadlessCommand, toast } from "@kksh/api/headless" -import _ from "lodash" +import camelCase from "lodash/camelcase" class CamelCaseExt extends HeadlessCommand { async load() { if (!await clipboard.hasText()) return; const clipboardText = await clipboard.readText(); - const convertedText = _.camelCase(clipboardText); + const convertedText = camelCase(clipboardText); await clipboard.writeText(convertedText); await toast.success(`Copied: "${convertedText}"`);