Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including iscamelcase with all npm packages installed. Try it out:

var iscamelcase = require("iscamelcase")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

iscamelcase v0.8.5

A small package that compares strings with there camelCased counterparts


This small package can check if a given string or a file is in camelCase style.



yarn add iscamelcase


npm install iscamelcase


At first we have to require the package:

const isCamelCase = require("iscamelcase");

There are two options to compare a given string. Both return a boolean.

string is a normal value

In this case we can use the checkString function:

string is a file

In this case we should use the checkFile function:


This function will also return false if the string is missing a file extension.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free