|
|
2 år sedan | |
|---|---|---|
| .. | ||
| dist | 2 år sedan | |
| dist.es2015 | 2 år sedan | |
| LICENSE | 2 år sedan | |
| README.md | 2 år sedan | |
| package.json | 2 år sedan | |
Transform into upper case string with an underscore between words.
npm install constant-case --save
import { constantCase } from "constant-case";
constantCase("string"); //=> "STRING"
constantCase("dot.case"); //=> "DOT_CASE"
constantCase("PascalCase"); //=> "PASCAL_CASE"
constantCase("version 1.2.10"); //=> "VERSION_1_2_10"
The function also accepts options.
MIT