Socket
Socket
Sign inDemoInstall

dot-case

Package Overview
Dependencies
2
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 2.0.0

12

dot-case.js

@@ -1,2 +0,2 @@

var sentenceCase = require('sentence-case')
var noCase = require('no-case')

@@ -6,8 +6,8 @@ /**

*
* @param {String} string
* @param {String} [locale]
* @return {String}
* @param {string} value
* @param {string} [locale]
* @return {string}
*/
module.exports = function (string, locale) {
return sentenceCase(string, locale, '.')
module.exports = function (value, locale) {
return noCase(value, locale, '.')
}
{
"name": "dot-case",
"version": "1.1.2",
"version": "2.0.0",
"description": "Dot case a string",

@@ -14,3 +14,3 @@ "main": "dot-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"
}
}
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