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

autocapitalize

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autocapitalize - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

1.0.1 - November, 23 2018
* 5a6c0c3 Fix: for hyphenated compound words (#1) (Lukas Aichbauer)
* c97a6b3 1.0.0 (aichbauer)
* 23096d5 1.0.0 (aichbauer)
1.0.0 - November, 22 2018

@@ -2,0 +8,0 @@

2

lib/index.js

@@ -31,3 +31,3 @@ "use strict";

var _returnValue = '';
value.toLowerCase().split(/([ ])/g).forEach(function (item) {
value.toLowerCase().split(/([ -])/g).forEach(function (item) {
_returnValue += item ? "".concat(item[0].toUpperCase()).concat(item.substring(1)) : '';

@@ -34,0 +34,0 @@ });

{
"name": "autocapitalize",
"description": "A small string manipulation library to capitalize letters based on rules",
"version": "1.0.0",
"version": "1.0.1",
"main": "./lib/index.js",

@@ -6,0 +6,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