Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abranhe/check-camelcase
Check if an string is camelCase 🐫
https://github.com/abranhe/check-camelcase
camelcase javascript nodejs npm
Last synced: 8 days ago
JSON representation
Check if an string is camelCase 🐫
- Host: GitHub
- URL: https://github.com/abranhe/check-camelcase
- Owner: abranhe
- License: mit
- Created: 2019-02-23T05:12:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-25T07:33:10.000Z (over 5 years ago)
- Last Synced: 2024-10-12T12:14:55.118Z (about 1 month ago)
- Topics: camelcase, javascript, nodejs, npm
- Language: JavaScript
- Homepage: https://p.abranhe.com/check-camelcase
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
Awesome Lists containing this project
README
## 🐫 check-camelcase
[![build](https://img.shields.io/travis/abranhe/check-camelcase.svg?logo=travis)](https://travis-ci.org/abranhe/check-camelcase)
[![license](https://img.shields.io/github/license/abranhe/check-camelcase.svg)](https://github.com/abranhe/check-camelcase/blob/master/license)
[![npm](https://img.shields.io/npm/v/check-camelcase)](https://npmjs.org/check-camelcase)> Check if an string is [camelcase](https://en.wikipedia.org/wiki/Camel_case)
If you need to check if an string is camelCase you are in the right place.
## Install
```
$ npm install check-camelcase
```## Usage
```js
const checkCamelcase = require('check-camelcase');console.log(checkCamelcase('camelCase'));
// => trueconsole.log(checkCamelcase('snake_case'));
// => falseconsole.log(checkCamelcase('Pascalcase'));
// => trueconsole.log(checkCamelcase('Darwin_case'));
// => trueconsole.log(checkCamelcase('string'));
// => false
```## API
#### checkCamelcase(string)
Check if an string is camelCase
Type: `boolean`
**string**
Type: `string`
## Related
- [tocamelcase](https://github.com/abranhe/tocamelcase): Convert to camelcase (Python).
- [decamelize](https://github.com/abranhe/decamelize): Convert to snake case (Python).## Team
|[![Carlos Abraham](https://avatars3.githubusercontent.com/u/21347264?s=50)](https://abranhe.com)|
| :-: |
| [Carlos Abraham](https://github.com/abranhe) |## License
[MIT](https://github.com/abranhe/check-camelcase/blob/master/license) License © [Carlos Abraham](https://github.com/abranhe/)