Comparing version 3.0.0 to 4.0.0
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2825