0.8.7 • Published 3 years ago
iscamelcase v0.8.7
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.
0.8.7
3 years ago
0.8.6
3 years ago
0.8.5
6 years ago
0.8.4
6 years ago
0.8.3
6 years ago
0.8.2
6 years ago
0.8.1
6 years ago
0.8.0
6 years ago
0.7.1
7 years ago
0.7.0
7 years ago
0.6.6
7 years ago
0.6.5
7 years ago
0.6.4
7 years ago
0.6.3
7 years ago
0.6.2
7 years ago
0.6.1
7 years ago
0.6.0
7 years ago
0.5.3
7 years ago
0.5.2
7 years ago
0.5.1
7 years ago
0.5.0
7 years ago