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

titleize

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

titleize - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

2

index.js

@@ -6,3 +6,3 @@ export default function titleize(string) {

return string.toLowerCase().replace(/(?:^|\s|-)\S/g, x => x.toUpperCase());
return string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, x => x.toUpperCase());
}
{
"name": "titleize",
"version": "3.0.0",
"version": "4.0.0",
"description": "Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`",

@@ -14,5 +14,8 @@ "license": "MIT",

"type": "module",
"exports": "./index.js",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"engines": {
"node": ">=12"
"node": ">=18"
},

@@ -39,6 +42,6 @@ "scripts": {

"devDependencies": {
"ava": "^3.15.0",
"tsd": "^0.14.0",
"xo": "^0.39.1"
"ava": "^5.3.1",
"tsd": "^0.29.0",
"xo": "^0.56.0"
}
}

@@ -7,5 +7,5 @@ # titleize

```sh
npm install titleize
```
$ npm install titleize
```

@@ -12,0 +12,0 @@ ## Usage

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