1 | # No Case
|
2 |
|
3 | > Transform any case string into a lower case string with a space between each word.
|
4 | > Example: `foo_bar` => `fooBar`
|
5 |
|
6 | ## Installation
|
7 |
|
8 | ```
|
9 | npm install no-case --save
|
10 | ```
|
11 |
|
12 | ## Usage
|
13 |
|
14 | ```js
|
15 | import { noCase } from "no-case";
|
16 |
|
17 | noCase("string"); //=> "string"
|
18 | noCase("dot.case"); //=> "dot case"
|
19 | noCase("PascalCase"); //=> "pascal case"
|
20 | noCase("version 1.2.10"); //=> "version 1 2 10"
|
21 | ```
|
22 |
|
23 | Optional `options` as the second argument:
|
24 |
|
25 | - `separateNumbers: boolean` - Splits numbers apart from letters, e.g. `V1` -> `v 1`.
|
26 | - `locale: string | false` - Lower case according to a specific `locale`, defaulting to the current system locale.
|
27 |
|
28 | ## License
|
29 |
|
30 | MIT
|