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:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
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.
In this case we can use the checkString function:
In this case we should use the checkFile function:
This function will also return false if the string is missing a file extension.