包详细信息

upper-case-first

blakeembrey36.9mMIT不推荐使用3.0.0

Use input.charAt(0).toUpperCase() + input.slice(1)

Transforms the string with the first character in upper cased

upper, case, first, capitalize

自述文件

Upper Case First

Transforms the string with the first character in upper cased.

Installation

npm install upper-case-first --save

Usage

import { upperCaseFirst } from "upper-case-first";

upperCaseFirst("test"); //=> "Test"

License

MIT