1 # decamelize [![Build Status](https://travis-ci.org/sindresorhus/decamelize.svg?branch=master)](https://travis-ci.org/sindresorhus/decamelize)
3 > Convert a camelized string into a lowercased one with a custom separator<br>
4 > Example: `unicornRainbow` → `unicorn_rainbow`
10 $ npm install --save decamelize
17 const decamelize = require('decamelize');
19 decamelize('unicornRainbow');
20 //=> 'unicorn_rainbow'
22 decamelize('unicornRainbow', '-');
23 //=> 'unicorn-rainbow'
29 ### decamelize(input, [separator])
43 See [`camelcase`](https://github.com/sindresorhus/camelcase) for the inverse.
48 MIT © [Sindre Sorhus](https://sindresorhus.com)