Skip to content

PatrickJS/upper-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upper Case

NPM version Build status Test coverage Gittip

Upper case a string. Also handles non-string entities, such as objects with a toString property, numbers and booleans. Empty values (null and undefined) will come out as an empty string.

Installation

npm install upper-case --save

Usage

var upperCase = require('upper-case');

upperCase(null);     //=> ""
upperCase('string'); //=> "STRING"

upperCase({ toString: function () { return 'test'; } }); //=> "TEST"

License

MIT

About

Uppercase a string in JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published