Skip to content

ianstormtaylor/to-pascal-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to-pascal-case

Convert a string to pascal case.

Installation

$ component install ianstormtaylor/to-pascal-case

Example

var pascal = require('to-pascal-case');

pascal('space case'); // "SpaceCase"
pascal('snake_case'); // "SnakeCase"
pascal('dot.case');   // "DotCase"
pascal('weird[case'); // "WeirdCase"

API

toCamelCase(string)

Returns the pascal-case variant of a string.

License

MIT

About

Convert a string to pascal case.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published