What is upper-case?
The upper-case npm package is a simple utility that converts strings to uppercase. It is primarily used for text transformation, enhancing readability or meeting specific data formatting requirements in applications.
What are upper-case's main functionalities?
Convert string to uppercase
This feature takes a string input and converts all the characters in the string to their uppercase equivalents.
"hello world".toUpperCase()
Other packages similar to upper-case
lodash.uppercase
Similar to upper-case, lodash.uppercase is part of the Lodash library which provides a more comprehensive set of string manipulation functions. While upper-case focuses solely on converting strings to uppercase, lodash.uppercase is part of a larger toolkit that includes various utilities for handling strings, arrays, objects, etc., making it more versatile for complex applications.
Upper Case
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');
upperCase('string', 'tr');
upperCase({ toString: function () { return 'test'; } });
License
MIT