cmy a6e36702ec 2023-3-1 před 2 roky
..
LICENSE a6e36702ec 2023-3-1 před 2 roky
README.md a6e36702ec 2023-3-1 před 2 roky
package.json a6e36702ec 2023-3-1 před 2 roky
title-case.d.ts a6e36702ec 2023-3-1 před 2 roky
title-case.js a6e36702ec 2023-3-1 před 2 roky

README.md

Title Case

NPM version NPM downloads Build status Test coverage

Title case a string.

Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a toString property, numbers and booleans. Empty values (null and undefined) will result in an empty string.

Installation

npm install title-case --save

Usage

var titleCase = require('title-case');

titleCase('string')     //=> "String"
titleCase('PascalCase') //=> "Pascal Case"

titleCase('STRING', 'tr') //=> "Strıng"

Typings

Includes a TypeScript definition.

License

MIT