Socket
Socket
Sign inDemoInstall

upper-case-first

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    upper-case-first

Upper case the first character of a string


Version published
Maintainers
1
Install size
9.96 kB
Created

Package description

What is upper-case-first?

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.

What are upper-case-first's main functionalities?

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'

Other packages similar to upper-case-first

Readme

Source

Upper Case First

NPM version NPM downloads Build status Test coverage

Upper case the first character of 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-first --save

Usage

var upperCaseFirst = require('upper-case-first')

upperCaseFirst(null)     //=> ""
upperCaseFirst('string') //=> "String"

Typings

Includes a TypeScript definition.

License

MIT

Keywords

FAQs

Last updated on 16 Dec 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc