{"id":31230852,"url":"https://github.com/jahirultusar/javascript-string-utils-lite","last_synced_at":"2026-01-20T17:00:10.152Z","repository":{"id":310233633,"uuid":"1039202851","full_name":"jahirultusar/JavaScript-string-utils-lite","owner":"jahirultusar","description":"string-utils-lite is a tiny, dependency-free JavaScript library that makes common string transformations effortless and consistent across projects.","archived":false,"fork":false,"pushed_at":"2025-08-17T08:19:47.000Z","size":203,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-20T06:59:31.240Z","etag":null,"topics":["javascript","npm-package","open-source","string-utils","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/string-utils-lite","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jahirultusar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-16T17:42:26.000Z","updated_at":"2025-08-17T08:19:51.000Z","dependencies_parsed_at":"2025-08-16T18:21:03.858Z","dependency_job_id":"e367bec0-4aac-4566-a32f-66055d273d2d","html_url":"https://github.com/jahirultusar/JavaScript-string-utils-lite","commit_stats":null,"previous_names":["jahirultusar/javascript-string-utils-lite"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/jahirultusar/JavaScript-string-utils-lite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahirultusar%2FJavaScript-string-utils-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahirultusar%2FJavaScript-string-utils-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahirultusar%2FJavaScript-string-utils-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahirultusar%2FJavaScript-string-utils-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jahirultusar","download_url":"https://codeload.github.com/jahirultusar/JavaScript-string-utils-lite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahirultusar%2FJavaScript-string-utils-lite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","npm-package","open-source","string-utils","typescript"],"created_at":"2025-09-22T10:13:57.449Z","updated_at":"2026-01-20T17:00:10.127Z","avatar_url":"https://github.com/jahirultusar.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# string-utils-lite\n\n[![npm version](https://img.shields.io/npm/v/string-utils-lite?color=blue)](https://www.npmjs.com/package/string-utils-lite)\n[![npm downloads](https://img.shields.io/npm/dm/string-utils-lite.svg)](https://www.npmjs.com/package/string-utils-lite)\n[![CI](https://img.shields.io/github/actions/workflow/status/jahirultusar/JavaScript-string-utils-lite/ci.yml?branch=main)](https://github.com/jahirultusar/JavaScript-string-utils-lite/actions/workflows/ci.yml)\n[![Release](https://github.com/jahirultusar/JavaScript-string-utils-lite/actions/workflows/release.yml/badge.svg)](https://github.com/jahirultusar/JavaScript-string-utils-lite/actions/workflows/release.yml)\n[![license](https://img.shields.io/github/license/jahirultusar/JavaScript-string-utils-lite)](./LICENSE)\n\n## 🎮 Live Playground\n\nTry the library instantly in your browser:  \n👉 [Playground Demo](https://jahirultusar.github.io/JavaScript-string-utils-lite/index.html)\n\n\n\n## What is `string-utils-lite`?\n\n`string-utils-lite` is a **tiny, dependency-free JavaScript library** that makes common string transformations effortless and consistent across projects.  \n\nIt provides simple helper functions for everyday string formatting needs:\n\n- `capitalize` → Uppercases the first character, lowercases the rest  \n- `titleCase` → Capitalises the first character of every word  \n- `toKebabCase` → Converts text into `kebab-case`  \n- `toSnakeCase` → Converts text into `snake_case`  \n- `toCamelCase` → Converts text into `camelCase`  \n- `toPascalCase` → Converts text into `PascalCase`  \n\n---\n\n## 💡 Why use this library?\n\nJavaScript lacks built-in utilities for string case transformations (unlike Python’s `.title()` or `.capitalize()`).  \nWhile you could write ad-hoc functions, `string-utils-lite` saves time by offering:\n\n- ✅ **Consistency** — same results across all projects  \n- ✅ **Zero dependencies** — lightweight, no bloat  \n- ✅ **Dual support** — works with both **ESM** and **CommonJS**  \n- ✅ **Tree-shakable** — import only what you need  \n\nWhether you’re cleaning up user input, formatting identifiers, or ensuring consistency in APIs, this library provides a clear and minimal solution.\n\n## 📦 Installation\n\nUsing npm (recommended):\n\n    ```bash\n    npm install string-utils-lite\n\n\n\n## 🚀 Usage\n\nYou can use string-utils-lite in multiple environments:\n\nES Modules:\n\n    import { capitalize, titleCase, toKebabCase } from 'string-utils-lite';\n\n    console.log(capitalize('hELLo'));        // \"Hello\"\n    console.log(titleCase('hELLO   woRLD')); // \"Hello   World\"\n    console.log(toKebabCase('Hello World')); // \"hello-world\"\n\nCommonJS:\n\n    const { capitalize, titleCase } = require('string-utils-lite');\n\n    console.log(capitalize('hELLo')); // \"Hello\"\n    console.log(titleCase('foo bar')); // \"Foo Bar\"\n\nCDN (Direct Browser Use):\n\nNo installation required! Load from a CDN like esm.sh and use in the browser. For example:\n\n    \u003cscript type=\"module\"\u003e\n        import { capitalize, titleCase } from \"https://esm.sh/string-utils-lite\";\n\n        console.log(capitalize(\"hELLo\"));        // \"Hello\"\n        console.log(titleCase(\"hELLO woRLD\"));   // \"Hello World\");\n    \u003c/script\u003e\n\n## 📚 API Reference\n\n    | Function          | Description                                      | Example Input   | Example Output  |\n    |-------------------|--------------------------------------------------|-----------------|-----------------|\n    | `capitalize(str)` | Uppercases the first letter, lowercases the rest | `\"hELLo\"`       | `\"Hello\"`       |\n    | `titleCase(str)`  | Capitalises the first letter of each word        | `\"hELLO woRLD\"` | `\"Hello World\"` |\n    | `toKebabCase(str)`| Converts string to kebab-case                    | `\"Hello World\"` | `\"hello-world\"` |\n    | `toSnakeCase(str)`| Converts string to snake_case                    | `\"Hello World\"` | `\"hello_world\"` |\n    | `toCamelCase(str)`| Converts string to camelCase                     | `\"Hello World\"` | `\"helloWorld\"`  |\n    | `toPascalCase(str)`| Converts string to PascalCase                   | `\"Hello World\"` | `\"HelloWorld\"`  |\n\n\u003e ℹ️ All functions are **pure**: they return a new string without mutating the input.\n\n\n## 🧪 Running Tests\n\n    This project uses Vitest\n\n    npm test\n\n## 🛠 Development\n\n    Clone the repo and install dependencies:\n\n    git clone https://github.com/jahirultusar/JavaScript-string-utils-lite.git\n    cd string-utils-lite\n    npm install\n\n\n    Build the package:\n\n    npm run build\n\n## 🤝 Contributing\n\n    Contributions are welcome! 🎉\n\n    Fork the repository\n\n    Create a feature branch (git checkout -b feature/my-feature)\n\n    Commit your changes (git commit -m 'feat: add new feature')\n\n    Push to the branch (git push origin feature/my-feature)\n\n    Open a Pull Request\n\n    Please follow Conventional Commits for commit messages.\n\n📄 License\n\n    MIT © 2025 Jahirul Tusar ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjahirultusar%2Fjavascript-string-utils-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjahirultusar%2Fjavascript-string-utils-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjahirultusar%2Fjavascript-string-utils-lite/lists"}