capital-case-r2
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

capital-case-r2

Additional JS String.prototype method.

Try it

https://daddybannk.github.io/capital-case-r2

Installation

npm install capital-case-r2

Usage

String.toCapitalCase(ignoreCase = true)

import "capital-case-r2";

const str = "This word is UPPER CASE.";

// ignoreCase = true (default)
console.log(str.toCapitalCase()); // "This Word Is UPPER CASE."

// ignoreCase = false
console.log(str.toCapitalCase(false)); // "This Word Is Upper Case."

Test

npm install --only=dev
npm run test

License

This project is licensed under the terms of the MIT license.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    7
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i capital-case-r2

Weekly Downloads

7

Version

2.0.0

License

MIT

Unpacked Size

5.03 kB

Total Files

7

Last publish

Collaborators

  • b5730200811