|
пре 2 година | |
---|---|---|
.. | ||
dist | пре 2 година | |
dist.es2015 | пре 2 година | |
LICENSE | пре 2 година | |
README.md | пре 2 година | |
package.json | пре 2 година |
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