package
Sentence-style capitalization in titles and headings based on Microsoft Styleguide
npm install microsoft-capitalizeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
9.1 kB
Includes dependencies.
Sentence-style capitalization in titles and headings based on Microsoft Styleguide.
$ npm install microsoft-capitalize --saveconst capitalize = require('microsoft-capitalize')
capitalize('Microlink CDN: Global Edge Cache')
// => 'Microlink CDN: Global edge cache'
// handling dot corner cases
capitalize('autopilot 2.5')
// => 'Autopilot 2.5'
// passing exceptions
capitalize('JSON+LD & oEmbed', ['oEmbed'])
// => 'JSON+LD & oEmbed'Required
Type: string
The input string to be capitalize.
Type: string[]
A list of words to be excluded.
microsoft-capitalize © Kiko Beats, released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub Kiko Beats · X @Kikobeats