1.0.1 • Published 6 years ago
check-camelcase v1.0.1
If you need to check if an string is camelCase you are in the right place.
Install
$ npm install check-camelcase
Usage
const checkCamelcase = require('check-camelcase');
console.log(checkCamelcase('camelCase'));
// => true
console.log(checkCamelcase('snake_case'));
// => false
console.log(checkCamelcase('Pascalcase'));
// => true
console.log(checkCamelcase('Darwin_case'));
// => true
console.log(checkCamelcase('string'));
// => false
API
checkCamelcase(string)
Check if an string is camelCase
Type: boolean
string
Type: string
Related
- tocamelcase: Convert to camelcase (Python).
- decamelize: Convert to snake case (Python).
Team
Carlos Abraham |
License
MIT License © Carlos Abraham