ตัวพิมพ์ เป็น CamelCase

เครื่องมือออนไลน์ฟรีและทันใจสำหรับแปลงข้อความธรรมดา สตริง หรือตัวแปรเป็น CamelCase

ข้อความนำเข้า
ผลลัพธ์ camel-case
ปลอดภัย 100%
การแปลงที่รวดเร็ว
ความแม่นยำสูง

ตัวแปลง CamelCase ออนไลน์ฟรี

เครื่องมือจัดรูปแบบสตริงของเราจะเปลี่ยนข้อความธรรมดา ประโยค หรือตัวแปรโค้ดของคุณให้เป็น CamelCase ทันที เพียงวางเนื้อหาของคุณ เครื่องมือจะจัดการช่องว่างและการใช้ตัวพิมพ์ใหญ่โดยอัตโนมัติ

วิธีแปลงไฟล์

1. วางข้อความ ตัวพิมพ์

วางหรือพิมพ์เนื้อหา ตัวพิมพ์ ของคุณลงในช่องนำเข้าข้อมูล

2. กระบวนการแปลง

เครื่องมือของเราจะแปลงข้อความของคุณเป็นรูปแบบ CamelCase โดยอัตโนมัติด้วยการตั้งค่าที่ดีที่สุด

3. คัดลอก CamelCase

การแปลงเสร็จสมบูรณ์ คุณสามารถคัดลอกผลลัพธ์ลงคลิปบอร์ดได้ทันที

คำถามที่พบบ่อย

ข้อมูลจำเพาะการแปลง

Inputตัวพิมพ์
OutputCamelCase
ความปลอดภัยHTTPS / ลบอัตโนมัติ
ราคา
ฟรี

การใช้งานโค้ด

camelCase

Takes an input string in any common format (space-separated, kebab-case, snake_case, PascalCase, etc.) and converts it to camelCase. The function first normalizes the string by identifying word boundaries (including transitions between acronyms, letters/numbers, and common delimiters like spaces, hyphens, dots, and underscores), then joins the segments together with the first segment in lowercase and each subsequent segment capitalized.

พารามิเตอร์

ชื่อชนิดคำอธิบาย
textstringThe text to convert.

การคืนค่า

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

camelCase('Foo Bar');
// => fooBar

camelCase('--foo-bar--');
// => fooBar

camelCase('__FOO_BAR__');
// => fooBar