source: trip-planner-front/node_modules/decamelize/readme.md@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 781 bytes
Line 
1# decamelize [![Build Status](https://travis-ci.org/sindresorhus/decamelize.svg?branch=master)](https://travis-ci.org/sindresorhus/decamelize)
2
3> Convert a camelized string into a lowercased one with a custom separator<br>
4> Example: `unicornRainbow` → `unicorn_rainbow`
5
6
7## Install
8
9```
10$ npm install --save decamelize
11```
12
13
14## Usage
15
16```js
17const decamelize = require('decamelize');
18
19decamelize('unicornRainbow');
20//=> 'unicorn_rainbow'
21
22decamelize('unicornRainbow', '-');
23//=> 'unicorn-rainbow'
24```
25
26
27## API
28
29### decamelize(input, [separator])
30
31#### input
32
33Type: `string`
34
35#### separator
36
37Type: `string`<br>
38Default: `_`
39
40
41## Related
42
43See [`camelcase`](https://github.com/sindresorhus/camelcase) for the inverse.
44
45
46## License
47
48MIT © [Sindre Sorhus](https://sindresorhus.com)
Note: See TracBrowser for help on using the repository browser.