iscamelcase
TypeScript icon, indicating that this package has built-in type declarations

0.8.7 • Public • Published

isCamelCase

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

install

Yarn

yarn add iscamelcase

NPM

npm install iscamelcase

example

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:

console.log(isCamelCase.checkString("foo"));
string is a file

In this case we should use the checkFile function:

console.log(isCamelCase.checkFile("foo.bar"));

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

/iscamelcase/

    Package Sidebar

    Install

    npm i iscamelcase

    Weekly Downloads

    27

    Version

    0.8.7

    License

    MIT

    Unpacked Size

    7.34 kB

    Total Files

    9

    Last publish

    Collaborators

    • winschu