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

camelcase

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

camelcase - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

index.js
'use strict';
module.exports = function (str) {
str = str.trim();
if (str.length === 1) {
return str;
}
return str
.trim()
.replace(/^[_.\- ]+/, '')

@@ -6,0 +11,0 @@ .toLowerCase()

2

package.json
{
"name": "camelcase",
"version": "1.0.0",
"version": "1.0.1",
"description": "Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar",

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