|
il y a 2 ans | |
---|---|---|
.. | ||
dist | il y a 2 ans | |
dist.es2015 | il y a 2 ans | |
LICENSE | il y a 2 ans | |
README.md | il y a 2 ans | |
package.json | il y a 2 ans |
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