JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7886772
  • Score
    100M100P100Q65958F
  • License MIT

Upper case a string

Package Exports

  • upper-case

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (upper-case) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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