text-to-camel-case Edge Function — Content
ContentConverts a space-separated, snake_case, kebab-case, or PascalCase string to camelCase. Zero dependencies.
Edge function text-to-camel-case Converts a space-separated, snake_case, kebab-case, or PascalCase string to camelCase. Zero dependencies.. Deployed on Cloudflare Workers — zero cold starts, globally distributed. Mount it via your Aerostack workspace to call it from any AI agent.
npx aerostack add navin/text-to-camel-case Use with AI Assistants
MCPConnect Claude, Cursor, or any MCP-compatible client — then call this function by slug
① Add MCP Server
Add this once — access all Aerostack functions from your AI tool.
{
"mcpServers": {
"aerostack": {
"url": "https://mcp.aerostack.dev",
"type": "http"
}
}
} ② Call this function
Ask your AI to use the call_function tool with this slug:
call_function({
slug: "text-to-camel-case",
args: {
"text": "example_text"
}
}) text-to-camel-case
Converts a space-separated, snake_case, kebab-case, or PascalCase string to camelCase. Zero external dependencies.
Install
aerostack function add text-to-camel-case
Usage
import { toCamelCase } from './functions/text-to-camel-case';
toCamelCase('hello world'); // 'helloWorld'
toCamelCase('hello_world'); // 'helloWorld'
toCamelCase('hello-world'); // 'helloWorld'
toCamelCase('HelloWorld'); // 'helloWorld'
toCamelCase('HELLO_WORLD'); // 'helloWorld'
toCamelCase('HTMLParser'); // 'htmlParser'
API
POST /api/text-to-camel-case
{ "text": "hello_world" }
{ "success": true, "data": { "result": "helloWorld" } }
| Field | Type | Required | Description |
|---|---|---|---|
text |
string | Yes | The string to convert to camelCase |
Metadata
Tags
Publisher
@navin verified
Build and publish your own functions
Write a TypeScript function, deploy it to the edge, and share it with thousands of developers — in minutes.
More Content Functions
Browse Content Functions →text-extract-emails
by @navin
Extracts all valid email addresses from free-form text using an RFC 5321 compliant pattern. Supports deduplication and preserves order of first appearance.
text-html-to-markdown
by @navin
Converts HTML to Markdown text. Handles headings, bold, italic, links, code, lists, blockquotes, and horizontal rules. Strips all other HTML tags while preserving text content.
text-markdown-to-html
by @navin
Converts Markdown text to HTML with optional sanitization. Supports all common Markdown syntax including headings, bold, italic, code blocks, lists, links, images, and blockquotes.
text-keyword-highlight
by @navin
Highlights keyword occurrences in text by wrapping them in configurable HTML tags. Handles case-insensitive matching, longest-match-first for overlapping keywords, and HTML entity escaping.
text-sanitize-html
by @navin
Sanitizes HTML by removing dangerous tags and attributes. Always strips script, style, iframe, form elements, and all event handlers. Keeps only whitelisted tags with whitelisted attributes.
text-slug-generate
by @navin
Generates a URL-safe slug from any string. Handles Unicode, accents, and special characters. Zero dependencies.
Frequently asked questions
What does the text-to-camel-case function do? +
text-to-camel-case is a serverless edge function for content automation written in aerostack. Deploy it to Cloudflare Workers via your Aerostack workspace.
How do I deploy the text-to-camel-case function? +
Install the Aerostack CLI and run: ```bash aerostack deploy function @navin/text-to-camel-case ``` It will be live on Cloudflare Workers in seconds.
What runtime does text-to-camel-case use? +
text-to-camel-case runs on aerostack on the Cloudflare Workers edge runtime — zero cold starts, globally distributed.
Can I customise the text-to-camel-case function? +
Yes. Fork the function from your Aerostack dashboard, modify the source, and redeploy. All changes are version-controlled.