capital-case

Transform into a space separated string with each word capitalized

MIT 6 个版本
安装
npm install capital-case
yarn add capital-case
pnpm add capital-case
bun add capital-case
README

Capital Case

Transform into a space separated string with each word capitalized.

Installation

npm install capital-case --save

Usage

import { capitalCase } from "capital-case";

capitalCase("string"); //=> "String"
capitalCase("dot.case"); //=> "Dot Case"
capitalCase("PascalCase"); //=> "Pascal Case"
capitalCase("version 1.2.10"); //=> "Version 1 2 10"

The function also accepts options.

License

MIT

版本列表
2.0.0 2023-09-30
1.0.4 2020-12-02
1.0.3 2019-12-19
1.0.2 2019-12-06
1.0.1 2019-12-03
1.0.0 2019-12-01