Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
upper-case
Advanced tools
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.
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()
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 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.
npm install upper-case --save
var upperCase = require('upper-case');
upperCase(null); //=> ""
upperCase('string'); //=> "STRING"
upperCase({ toString: function () { return 'test'; } }); //=> "TEST"
MIT
FAQs
Transforms the string to upper case
The npm package upper-case receives a total of 8,923,006 weekly downloads. As such, upper-case popularity was classified as popular.
We found that upper-case demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.