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

camelscore

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

camelscore - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

9

CHANGELOG.md

@@ -1,10 +0,1 @@

#v.0.1.4
- Fixes an issue with multi uppercase letters and number usage.
#v0.1.3
- Remove needless engines specificity
# v0.1.2

@@ -11,0 +2,0 @@

4

index.js

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

camelCase: function camelCase(str) {
return str.replace(/([aA-zZ])_(\w)/g, function (g) {
return str.replace(/([a-z])_(\w)/g, function (g) {
return g[0] + g[2].toUpperCase();

@@ -117,3 +117,3 @@ });

underscore: function underscore(str) {
return str.replace(/([a-z])([A-Z0-9]+)/g, function (g) {
return str.replace(/([a-z])([A-Z]+)/g, function (g) {
return g.split('').map(function (k) {

@@ -120,0 +120,0 @@ return k.toLowerCase();

{
"name": "camelscore",
"description": "camelCase and under_score utilities for objects.",
"version": "0.1.4",
"version": "0.1.5",
"author": "Trevor Livingston <tlivings@gmail.com>",

@@ -6,0 +6,0 @@ "repository": {

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