diff options
author | 2022-04-14 02:01:05 +0200 | |
---|---|---|
committer | 2022-04-14 02:01:05 +0200 | |
commit | 24ff6528f72929d5aa1730e9f5015432fc99829f (patch) | |
tree | 0e40303ca8e1536e4c19b7dc1a0e202514cc037d /scripts/create-tool.mjs | |
parent | bdcb8badfd593bf5b8bd50d6101816f1973a2305 (diff) | |
download | it-tools-24ff6528f72929d5aa1730e9f5015432fc99829f.tar.gz it-tools-24ff6528f72929d5aa1730e9f5015432fc99829f.tar.zst it-tools-24ff6528f72929d5aa1730e9f5015432fc99829f.zip |
chore(scripts): updated tool creation script
Diffstat (limited to 'scripts/create-tool.mjs')
-rw-r--r-- | scripts/create-tool.mjs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/create-tool.mjs b/scripts/create-tool.mjs index a17bd63..ecbd8c3 100644 --- a/scripts/create-tool.mjs +++ b/scripts/create-tool.mjs @@ -12,6 +12,7 @@ if (!toolName) { } const toolNameCamelCase = toolName.replace(/-./g, (x) => x[1].toUpperCase()); +const toolNameTitleCase = toolName[0].toUpperCase() + toolName.slice(1).replace(/-/g, ' '); const toolDir = join(toolsDir, toolName); await mkdir(toolDir); @@ -48,7 +49,7 @@ import { ArrowsShuffle } from '@vicons/tabler'; import type { ITool } from './../Tool'; export const tool: ITool = { - name: '${toolName}', + name: '${toolNameTitleCase}', path: '/${toolName}', description: '', keywords: ['${toolName.split('-').join("', '")}'], |