UNPKG

658 BMarkdownView Raw
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```
9npm install no-case --save
10```
11
12## Usage
13
14```js
15import { noCase } from "no-case";
16
17noCase("string"); //=> "string"
18noCase("dot.case"); //=> "dot case"
19noCase("PascalCase"); //=> "pascal case"
20noCase("version 1.2.10"); //=> "version 1 2 10"
21```
22
23Optional `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
30MIT