This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/graphql-types/node_modules/capital-case
2021-03-09 19:44:13 +01:00
..
dist add configured graphql-codegen 2021-03-09 19:44:13 +01:00
dist.es2015 add configured graphql-codegen 2021-03-09 19:44:13 +01:00
LICENSE add configured graphql-codegen 2021-03-09 19:44:13 +01:00
package.json add configured graphql-codegen 2021-03-09 19:44:13 +01:00
README.md add configured graphql-codegen 2021-03-09 19:44:13 +01:00

Capital Case

NPM version NPM downloads Bundle size

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