constant-case
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -1,2 +0,2 @@ | ||
var sentence = require('sentence-case'); | ||
var snake = require('snake-case'); | ||
@@ -10,3 +10,3 @@ /** | ||
module.exports = function (string) { | ||
return sentence(string).toUpperCase().replace(/ /g, '_'); | ||
return snake(string).toUpperCase(); | ||
}; |
{ | ||
"name": "constant-case", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "Constant case a string", | ||
@@ -29,4 +29,4 @@ "main": "constant-case.js", | ||
"dependencies": { | ||
"sentence-case": "0.0.2" | ||
"snake-case": "^0.1.1" | ||
} | ||
} |
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
3113
+ Addedsnake-case@^0.1.1
+ Addedsentence-case@0.1.2(transitive)
+ Addedsnake-case@0.1.1(transitive)
- Removedsentence-case@0.0.2
- Removedsentence-case@0.0.2(transitive)