|
před 2 roky | |
---|---|---|
.. | ||
dist | před 2 roky | |
dist.es2015 | před 2 roky | |
LICENSE | před 2 roky | |
README.md | před 2 roky | |
package.json | před 2 roky |
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