snake-case
Advanced tools
Comparing version 1.1.2 to 2.0.0
{ | ||
"name": "snake-case", | ||
"version": "1.1.2", | ||
"version": "2.0.0", | ||
"description": "Snake case a string", | ||
@@ -14,3 +14,3 @@ "main": "snake-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", | ||
@@ -39,10 +39,9 @@ "test": "npm run lint && npm run test-cov" | ||
"devDependencies": { | ||
"istanbul": "^0.3.0", | ||
"istanbul": "^0.4.3", | ||
"mocha": "^2.1.0", | ||
"pre-commit": "^1.0.1", | ||
"standard": "^3.3.0" | ||
"standard": "^7.1.2" | ||
}, | ||
"dependencies": { | ||
"sentence-case": "^1.1.2" | ||
"no-case": "^2.0.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
var sentenceCase = require('sentence-case') | ||
var noCase = require('no-case') | ||
@@ -6,8 +6,8 @@ /** | ||
* | ||
* @param {String} str | ||
* @param {String} [locale] | ||
* @return {String} | ||
* @param {string} value | ||
* @param {string} [locale] | ||
* @return {string} | ||
*/ | ||
module.exports = function (str, locale) { | ||
return sentenceCase(str, locale, '_') | ||
module.exports = function (value, locale) { | ||
return noCase(value, locale, '_') | ||
} |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
3
2450
4
1
0
+ Addedno-case@^2.0.0
+ Addedno-case@2.3.2(transitive)
- Removedsentence-case@^1.1.2
- Removedsentence-case@1.1.3(transitive)