iscamelcase
A small package that compares strings with there camelCased counterparts
Last updated a year ago by winschu .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install iscamelcase 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.8.5                                ...           latest (a year ago)

19 Versions

  • 0.8.5                                ...           a year ago
  • 0.8.4                                ...           a year ago
  • 0.8.3                                ...           a year ago
  • 0.8.2                                ...           a year ago
  • 0.8.1                                ...           a year ago
  • 0.8.0                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.6                                ...           2 years ago
  • 0.6.5                                ...           2 years ago
  • 0.6.4                                ...           2 years ago
  • 0.6.3                                ...           2 years ago
  • 0.6.2                                ...           2 years ago
  • 0.6.1                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.3                                ...           2 years ago
  • 0.5.2                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |