テキスト

大文字/小文字 HeaderCase

通常のテキスト、文字列、または変数をHeaderCaseに変換するための、無料で即座に使えるオンラインツールです。

入力テキスト
header-case の結果
100%安全
高速変換
高精度

無料オンラインHeaderCaseコンバーター

当社の文字列フォーマットツールは、通常のテキスト、文章、またはコード変数を即座にHeaderCaseに変換します。コンテンツを貼り付けるだけで、スペースや大文字小文字を自動的に処理します。

変換方法

1. 大文字/小文字 テキストを貼り付け

入力エリアに 大文字/小文字 の内容を貼り付けるか入力してください。

2. 変換プロセス

ツールが自動的に最適な設定でテキストを HeaderCase 形式に変換します。

3. HeaderCase をコピー

変換が完了しました。結果をクリップボードに直接コピーできます。

よくある質問

変換仕様

入力大文字/小文字
出力HeaderCase
安全性HTTPS / 自動削除
価格
無料

コードの使用

headerCase

Converts a given string into Header-Case (also known as Train-Case), where each word is capitalized and separated by hyphens. The function handles various input formats including camelCase, snake_case, and strings with arbitrary delimiters by first splitting the text into individual words, capitalizing the first letter of each word, lowercasing the rest, and then joining them with hyphens.

パラメータ

名前説明
textstringThe text to convert.

戻り値

stringThe header cased string.
npm i @razomy/string-case
import {headerCase} from '@razomy/string-case';

headerCase('hello world');
// => Hello-World

headerCase('camelCaseString');
// => Camel-Case-String

headerCase('session_id');
// => Session-Id