setup-kubectl/node_modules/decamelize
github-actions[bot] 7f7e5ba5ea
Add node modules and compiled JavaScript from main (#57)
Co-authored-by: Oliver King <oking3@uncc.edu>
2022-06-21 12:18:30 -04:00
..
index.js Add node modules and compiled JavaScript from main (#57) 2022-06-21 12:18:30 -04:00
license Add node modules and compiled JavaScript from main (#57) 2022-06-21 12:18:30 -04:00
package.json Add node modules and compiled JavaScript from main (#57) 2022-06-21 12:18:30 -04:00
readme.md Add node modules and compiled JavaScript from main (#57) 2022-06-21 12:18:30 -04:00

decamelize Build Status

Convert a camelized string into a lowercased one with a custom separator
Example: unicornRainbowunicorn_rainbow

Install

$ npm install --save decamelize

Usage

const decamelize = require('decamelize');

decamelize('unicornRainbow');
//=> 'unicorn_rainbow'

decamelize('unicornRainbow', '-');
//=> 'unicorn-rainbow'

API

decamelize(input, [separator])

input

Type: string

separator

Type: string
Default: _

See camelcase for the inverse.

License

MIT © Sindre Sorhus