tree: 3c2ded2ac4dc2a1be2c1084eb5c2607b33373377
  1. index.d.ts
  2. index.js
  3. license
  4. package.json
  5. readme.md
node_modules/yargs-unparser/node_modules/decamelize/readme.md

decamelize Build Status

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

Install

$ npm install 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: '_'

Related

See camelcase for the inverse.