capitalize-lightweight
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

google-sheets-logo

Version

2 lightweight helper functions to do 'helloWORLD' → 'Helloworld' or 'helloWORLD' → 'HelloWORLD'.

Install

npm install --save capitalize-lightweight

Or via Yarn:

yarn add capitalize-lightweight

Usage

import { capitalize, capitalizeExtra } from "capitalize-lightweight";

const s1 = capitalize('helloWORLD');
console.log(s1); // => 'HelloWORLD'

const s2 = capitalizeExtra('helloWORLD');
console.log(s2); // => 'Helloworld'

"wHy dO i NEeD A LiBrary FOr that?!"

You don't ofc. I wanted mine. Feel free to re-use it.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    3
    • latest

Version History

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

Package Sidebar

Install

npm i capitalize-lightweight

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

4.09 kB

Total Files

7

Last publish

Collaborators

  • maks-io