Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snake-case

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snake-case - npm Package Compare versions

Comparing version 1.1.2 to 2.0.0

11

package.json
{
"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, '_')
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc