Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

constant-case

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

constant-case - npm Package Compare versions

Comparing version
0.0.2
to
0.1.0
+2
-2
constant-case.js

@@ -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"
}
}