GitShow/sindresorhus/camelcase
sindresorhus

camelcase

Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar

by sindresorhus
Star on GitHubForknpm

JavaScript

698 stars100 forks31 contributorsActive · 1mo agoSince 2014v9.0.0MIT

Meet the team

See all 31 on GitHub →
sindresorhus
sindresorhus66 contributions
SamVerschueren
SamVerschueren6 contributions
DanielSeehausen
DanielSeehausen3 contributions
Qix-
Qix-3 contributions
BendingBender
BendingBender2 contributions
kevva
kevva2 contributions
qw-in
qw-in1 contribution
rocktimsaikia
rocktimsaikia1 contribution

Languages

View on GitHub →
JavaScript96.8%
TypeScript3.2%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
leomav
Apply casing to chars except the ones after a number (issue #77)MergedPR

In this PR Based on this issue #77 If understood correctly, what's needed is for strings' characters to change to lower case or upper case only if they are not after a number. For example: Chars after numbers do not change index.js Created a helper function called applyCasingExceptAfterNumber, which is responsible to apply case functions to all chars except the ones after a number. It takes as parameters the string, and the case function. test.js Updated 6 tests in order for the new desired effect to be the correct one package.json Update the xo dependency version in order for tests to run due to a bug presented in previous xojs/xo versions

leomav · 9mo ago
TomerAberbach
Add failing idempotence testMergedPR

I noticed that is not idempotent, which I think is a bug. i.e. if is meant to return a camel-cased version of the input, then camel-casing it _again_ should not result in a diff because it's already been camel-cased. I've added a failing property-based test for this, but haven't figured out what the implementation bug is exactly. Feel free to merge as-is, but I may update this PR with an actual bug fix if I have time. An example of a case that fails is :

TomerAberbach · 9mo ago
andy-tazxap
Getting a 403 Trying to pull this package with npmClosedIssue

Getting a 403 trying to use this package

andy-tazxap · 11mo ago
Structured data for AI agents

Repository: sindresorhus/camelcase. Description: Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar Stars: 698, Forks: 100. Primary language: JavaScript. Languages: JavaScript (96.8%), TypeScript (3.2%). License: MIT. Latest release: v9.0.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, SamVerschueren, DanielSeehausen, Qix-, BendingBender, kevva, qw-in, rocktimsaikia, sverweij, mesaugat and others.

·@ofershap

Replace github.com with gitshow.dev