camel-case
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -1,3 +0,3 @@ | ||
var upperCase = require('upper-case'); | ||
var sentenceCase = require('sentence-case'); | ||
var upperCase = require('upper-case') | ||
var sentenceCase = require('sentence-case') | ||
@@ -17,4 +17,4 @@ /** | ||
.replace(/ (.)/g, function (m, $1) { | ||
return upperCase($1, locale); | ||
}); | ||
}; | ||
return upperCase($1, locale) | ||
}) | ||
} |
{ | ||
"name": "camel-case", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Camel case a string", | ||
@@ -11,3 +11,6 @@ "main": "camel-case.js", | ||
"scripts": { | ||
"test": "istanbul cover _mocha -- -R spec" | ||
"lint": "standard", | ||
"test-std": "mocha -- -R spec --bail", | ||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail", | ||
"test": "npm run lint && npm run test-cov" | ||
}, | ||
@@ -45,4 +48,5 @@ "repository": { | ||
"istanbul": "^0.3.0", | ||
"mocha": "^1.18.2", | ||
"pre-commit": "0.0.9" | ||
"mocha": "^2.2.1", | ||
"pre-commit": "^1.0.6", | ||
"standard": "^3.3.0" | ||
}, | ||
@@ -49,0 +53,0 @@ "dependencies": { |
# Camel Case | ||
[![NPM version][npm-image]][npm-url] | ||
[![NPM downloads][downloads-image]][downloads-url] | ||
[![Build status][travis-image]][travis-url] | ||
@@ -15,3 +16,3 @@ [![Test coverage][coveralls-image]][coveralls-url] | ||
```sh | ||
``` | ||
npm install camel-case --save | ||
@@ -23,10 +24,10 @@ ``` | ||
```javascript | ||
var camelCase = require('camel-case'); | ||
var camelCase = require('camel-case') | ||
camelCase('string'); //=> "string" | ||
camelCase('dot.case'); //=> "dotCase" | ||
camelCase('PascalCase'); //=> "pascalCase" | ||
camelCase('version 1.2.10'); //=> "version1_2_10" | ||
camelCase('string') //=> "string" | ||
camelCase('dot.case') //=> "dotCase" | ||
camelCase('PascalCase') //=> "pascalCase" | ||
camelCase('version 1.2.10') //=> "version1_2_10" | ||
camelCase('STRING 1.2', 'tr'); //=> "strıng1_2" | ||
camelCase('STRING 1.2', 'tr') //=> "strıng1_2" | ||
``` | ||
@@ -40,2 +41,4 @@ | ||
[npm-url]: https://npmjs.org/package/camel-case | ||
[downloads-image]: https://img.shields.io/npm/dm/camel-case.svg?style=flat | ||
[downloads-url]: https://npmjs.org/package/camel-case | ||
[travis-image]: https://img.shields.io/travis/blakeembrey/camel-case.svg?style=flat | ||
@@ -42,0 +45,0 @@ [travis-url]: https://travis-ci.org/blakeembrey/camel-case |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4303
45
4