Socket
Socket
Sign inDemoInstall

camel-case

Package Overview
Dependencies
3
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 2.0.0

12

camel-case.js
var upperCase = require('upper-case')
var sentenceCase = require('sentence-case')
var noCase = require('no-case')

@@ -7,8 +7,8 @@ /**

*
* @param {String} string
* @param {String} [locale]
* @return {String}
* @param {string} value
* @param {string} [locale]
* @return {string}
*/
module.exports = function (string, locale, mergeNumbers) {
var result = sentenceCase(string, locale)
module.exports = function (value, locale, mergeNumbers) {
var result = noCase(value, locale)

@@ -15,0 +15,0 @@ // Replace periods between numeric entities with an underscore.

{
"name": "camel-case",
"version": "1.2.2",
"version": "2.0.0",
"description": "Camel case a string",

@@ -14,3 +14,3 @@ "main": "camel-case.js",

"lint": "standard",
"test-std": "mocha -- -R spec --bail",
"test-spec": "mocha -- -R spec --bail",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail",

@@ -51,9 +51,8 @@ "test": "npm run lint && npm run test-cov"

"mocha": "^2.2.1",
"pre-commit": "^1.0.6",
"standard": "^3.3.0"
},
"dependencies": {
"sentence-case": "^1.1.1",
"no-case": "^2.0.0",
"upper-case": "^1.1.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc