1 | # Constant Case
|
2 |
|
3 | > Transform into upper case string with an underscore between words.
|
4 |
|
5 | ## Installation
|
6 |
|
7 | ```
|
8 | npm install constant-case --save
|
9 | ```
|
10 |
|
11 | ## Usage
|
12 |
|
13 | ```js
|
14 | import { constantCase } from "constant-case";
|
15 |
|
16 | constantCase("string"); //=> "STRING"
|
17 | constantCase("dot.case"); //=> "DOT_CASE"
|
18 | constantCase("PascalCase"); //=> "PASCAL_CASE"
|
19 | constantCase("version 1.2.10"); //=> "VERSION_1_2_10"
|
20 | ```
|
21 |
|
22 | The function also accepts [`options`](https://github.com/blakeembrey/change-case#options).
|
23 |
|
24 | ## License
|
25 |
|
26 | MIT
|