Skip to content
Upper case the first character of a string in JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
package.json
test.js
upper-case-first.d.ts
upper-case-first.js

README.md

Upper Case First

NPM version NPM downloads Build status Test coverage Greenkeeper badge

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.