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

decamelize

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

decamelize - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

index.js

@@ -6,3 +6,3 @@ 'use strict';

}
sep = sep || '_';
sep = typeof sep === 'undefined' ? '_' : sep;
return str.replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2')

@@ -9,0 +9,0 @@ .replace(new RegExp('(' + sep + '[A-Z])([A-Z])', 'g'), '$1' + sep + '$2')

{
"name": "decamelize",
"version": "1.1.0",
"version": "1.1.1",
"description": "Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow",

@@ -5,0 +5,0 @@ "license": "MIT",

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