npm.io
3.0.1 • Published 7 years ago

string-casing

Licence
MIT
Version
3.0.1
Deps
0
Size
4 kB
Vulns
0
Weekly
0

String casing

Utility functions for dealing with common string casing needs.

Installation

npm install --save string-casing

API

camelCase(str)

param: {string} str - A string that is currently snake cased (e.g. hello_world).

returns {string} - A camel cased string (e.g. helloWorld).

snakeCase(str)

param: {string} str - A string that is currently camel cased (e.g. helloWorld).

returns {string} - A snake cased string (e.g. hello_world).