Gathering detailed insights and metrics for @directus/format-title
Gathering detailed insights and metrics for @directus/format-title
Gathering detailed insights and metrics for @directus/format-title
Gathering detailed insights and metrics for @directus/format-title
@skuhnow/directus-format-title
Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)
@directus9/format-title
Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)
@mv-data-core/format-title
Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)
@wbce-d9/format-title
Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)
The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.
npm install @directus/format-title
Typescript
Module System
Node Version
NPM Version
91.6
Supply Chain
82.4
Quality
83.1
Maintenance
100
Vulnerability
100
License
TypeScript (71.85%)
Vue (26.21%)
SCSS (0.8%)
Liquid (0.38%)
JavaScript (0.36%)
CSS (0.36%)
Dockerfile (0.03%)
HTML (0.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
31,707 Stars
13,023 Commits
4,302 Forks
324 Watchers
211 Branches
463 Contributors
Updated on Jul 17, 2025
Latest Version
12.0.1
Package Id
@directus/format-title@12.0.1
Unpacked Size
7.74 kB
Size
3.38 kB
File Count
5
NPM Version
10.9.2
Node Version
22.14.0
Published on
Mar 25, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
Custom formatter that converts any string into Title Case.
Capital letters are used for principal words. Articles, conjunctions, and prepositions do not get capital letters unless they start or end the title.
Input | Output |
---|---|
snowWhiteAndTheSevenDwarfs | Snow White and the Seven Dwarfs |
NewcastleUponTyne | Newcastle Upon Tyne |
brighton_on_sea | Brighton on Sea |
apple_releases_new_ipad | Apple Releases New iPad |
7-food-trends | 7 Food Trends |
The package contains a list of words that use some sort of special casing, for example: McDonalds, iPhone, and YouTube.
1npm install @directus/format-title
The package by default converts camelCase, PascalCase, underscore, and "regular" sentences to Title Case.
1formatTitle(string, [separator]); 2 3formatTitle('snowWhiteAndTheSevenDwarfs'); 4// => Snow White and the Seven Dwarfs
You can provide an optional separator
regex as a second parameter to support splitting the string on different
characters. By default, this regex is set to /\s|-|_/g
.
This package is licensed under the MIT License. See the LICENSE file for more information.
No vulnerabilities found.
Reason
30 commit(s) and 10 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
all changesets reviewed
Reason
no binaries found in the repo
Reason
packaging workflow detected
Details
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
security policy file detected
Details
Reason
9 existing vulnerabilities detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More