UNPKG

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