package
Capitalize your titles properly
npm install titleGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
This package correctly capitalizes your titles as per The Chicago Manual of Style.
Install the package:
pnpm add titleThen, import it and convert any input text:
import title from 'title'
title('tHe cHicaGo maNual oF StyLe')
// Will result in:
// "The Chicago Manual of Style"You can pass words that should be capitalized as specified:
title('FaCEbook is great', {
special: [ 'facebook' ]
})
// Will result in:
// "facebook is great"You can also convert titles in the command line. Install the package globally:
pnpm add -g titleNext, run it:
title "tHe cHicaGo maNual oF StyLe"
# Will result in:
# "The Chicago Manual of Style"To see all available options, run:
title -htitle if it's already installed: pnpm remove -g titlepnpm linkAfter that, you can use the title command everywhere.
Estimated unpacked size across 25 packages.
1.6 MB
Includes dependencies.
3 direct · 2 outdated