Socket
Socket
Sign inDemoInstall

change-case

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

change-case - npm Package Compare versions

Comparing version 1.0.2 to 1.0.4

4

index.js

@@ -32,4 +32,4 @@ /**

return string
.replace(/([a-z0-9])([A-Z])/, '$1 $2')
.replace(/([^a-zA-Z0-9]*)([a-zA-Z0-9]+)/g, function (_, $0, $1) {
.replace(/([a-z0-9])([A-Z])/g, '$1 $2')
.replace(/([^a-zA-Z0-9]*)([a-zA-Z0-9]*)/g, function (_, $0, $1) {
var prefix = $0;

@@ -36,0 +36,0 @@

{
"name": "change-case",
"version": "1.0.2",
"version": "1.0.4",
"description": "Convert strings between camelCase, PascalCase, Title Case, snake_case, etc",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -46,2 +46,4 @@ /* global describe, it */

assert.equal(changeCase.camelCase('-webkit-transform'), 'webkitTransform');
assert.equal(changeCase.camelCase('fooBarBaz'), 'fooBarBaz');
assert.equal(changeCase.camelCase('some (things)'), 'someThings');
});

@@ -48,0 +50,0 @@

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