Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including upper-case-first with all npm packages installed. Try it out:

var upperCaseFirst = require("upper-case-first")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

upper-case-first v1.1.2

Upper case the first character of a string

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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free