You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
max
bd3f8090ff
|
2 years ago | |
---|---|---|
.. | ||
dist | 2 years ago | |
dist.es2015 | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
package.json | 2 years ago |
README.md
Constant Case
Transform into upper case string with an underscore between words.
Installation
npm install constant-case --save
Usage
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
.
License
MIT