string-casing

3.0.1 • Public • Published

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).

Package Sidebar

Install

npm i string-casing

Weekly Downloads

2

Version

3.0.1

License

MIT

Unpacked Size

4.4 kB

Total Files

11

Last publish

Collaborators

  • mmckelvy