npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

upper-case-first

1.1.2 • Public • Published

Upper Case First

NPM version NPM downloads Build status Test coverage

Upper case the first character of 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 upper-case-first --save

Usage

var upperCaseFirst = require('upper-case-first')
 
upperCaseFirst(null)     //=> ""
upperCaseFirst('string') //=> "String"

Typings

Includes a TypeScript definition.

License

MIT

install

npm i upper-case-first

Downloadsweekly downloads

655,529

version

1.1.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability