![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | dist.es2015/ | 2 years ago | - | |
![]() | dist/ | 2 years ago | - | |
![]() | node_modules/ | 2 years ago | - | |
![]() | LICENSE | 40 years ago | 1.1K | |
![]() | README.md | 40 years ago | 1.0K | d7c1522 post receive test [كارل مبارك] |
![]() | package.json | 2 years ago | 3.0K |
Transform into a space separated string with each word capitalized.
npm install capital-case --save
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
.
MIT