Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@kldit/util-slug-to-capitalized

kldit3Apache-2.01.0.1

Slug string to capitalized (uppercase first letter in words) string

string, slug, capitalized

readme

util-slug-to-capitalized

Install

npm i --save @kldit/util-slug-to-capitalized

Usage

Load at the begining of your application.

require("@kldit/util-slug-to-capitalized");

Run at any where of your code.

"teste-plutot-good-nicht".slugToCapitalized() // "TestePlutotGoodNicht"
"teste".firstCharToLowerCase() // "Teste"