@plexis/to-capitals

0.0.22 • Public • Published

@plexis/to-capitals

Converts the first character of the input text to upper case. If the second parameter is true, the method converts the rest of the subject to lower case.

npm i @plexis/to-capitals

Usage

import toCapitals from '@plexis/to-capitals';

toCapitals('foo Bar'); // returns 'Foo Bar'
toCapitals('fOO Bar'); // returns 'FOO Bar'
toCapitals('fOO Bar', true); // returns 'Foo bar'

Aliases

import toCapitals from '@plexis/to-capitals';
import {toCapitals, toFirstCapital, capitalize} from 'plexis';

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @plexis/to-capitals

      Weekly Downloads

      1

      Version

      0.0.22

      License

      MIT

      Unpacked Size

      3.3 kB

      Total Files

      4

      Last publish

      Collaborators

      • vorillaz