Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

upper-case

1.1.3 • Public • Published

Upper Case

NPM version NPM downloads Build status Test coverage

Upper case 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 --save

Usage

var upperCase = require('upper-case')
 
upperCase(null)           //=> ""
upperCase('string')       //=> "STRING"
upperCase('string', 'tr') //=> "STRİNG"
 
upperCase({ toString: function () { return 'test' } }) //=> "TEST"

Typings

Includes a TypeScript definition.

License

MIT

install

npm i upper-case

Downloadsweekly downloads

4,351,540

version

1.1.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability