
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
upper-case-first
Advanced tools
The upper-case-first npm package is a simple utility that allows you to capitalize the first letter of a string. It is useful when you need to ensure that a string is properly capitalized, such as when formatting names or titles.
Capitalize the first letter of a string
This feature takes a string and capitalizes the first character of that string. It is useful for formatting text that needs to start with a capital letter.
"use strict";
var upperCaseFirst = require('upper-case-first');
console.log(upperCaseFirst('string')); // 'String'
The 'capitalize' package provides a similar functionality to upper-case-first, allowing users to capitalize the first letter of a string or every word in a string. It offers more options than upper-case-first, such as capitalizing every word or handling edge cases differently.
The 'titleize' package is another alternative that converts a string into a title case, where the first letter of each major word is capitalized. It is more comprehensive than upper-case-first as it deals with a full string and applies title case rules, not just capitalizing the first letter.
The 'to-capital-case' package converts a string to a capital case where the first letter of each word is capitalized. This package is more similar to 'titleize' and is different from upper-case-first which only capitalizes the first letter of the entire string.
Transforms the string with the first character in upper cased.
npm install upper-case-first --save
import { upperCaseFirst } from "upper-case-first";
upperCaseFirst("test"); //=> "Test"
MIT
FAQs
Transforms the string with the first character in upper cased
The npm package upper-case-first receives a total of 0 weekly downloads. As such, upper-case-first popularity was classified as not popular.
We found that upper-case-first 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.